4.1 Across Variables
Simulink의 Scope
또는 Data Inspector
처럼 simscape 데이터를 확인하는 방법.
4.1.1 VOltage Sensor
Electrical domain에는 Current Sensor
와 Voltage 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$-축을 확인.