less than 1 minute read


Simulink의 Scope 또는 Data Inspector처럼 simscape 데이터를 확인하는 방법.



4.1.1 VOltage Sensor

Electrical domain에는 Current SensorVoltage Sensor가 존재.

Electrical > Electrical Sensors

Voltage Sensor의 (+) 포트를 capacitor의 (+) 포트에, (-) 포트를 capacitor의 (-) 포트에 연결해 보자.



그런데 Voltage Sensor에는 연결 포트가 하나 더 있다. Simscape 센서의 output은 언제나 physical domain이었음을 기억. 저 포트 모양은 simulink와 다르다!

PS-Simulink Converter를 부착.



PS-Simulink Converter의 output은 임의의 simulink 블록의 input 포트와 연결 가능. 여기서는 simscape 모델의 물리량을 simulink 모델의 결정에 따라 구동되게끔 하고 싶다.

예를 들면, feedback control loop.

일단 Scope를 센서 output에 연결해보자.





4.1.2 Select Units

PS-Simulink Converter는 출력 simulink 신호의 단위를 바꿀 수 있는 기능이 있다.

원하는 단위가 없다면 어떡하지? 예를 들어, $mV$ 단위로 보고 싶다면?

그냥 Output signal unit에 타이핑해서 집어넣으면 그만.



$y$-축을 확인.