Voltage sensor in electrical systems
Simscape / Foundation Library / Electrical / Electrical Sensors
Simscape / Electrical / Sensors & Transducers
The Voltage Sensor block represents an ideal voltage sensor, that is, a device that converts voltage measured between two points of an electrical circuit into a physical signal proportional to the voltage.
Use the + and - ports to connect the sensor in parallel with the block (or several blocks) where you want to measure the voltage. Port V outputs the measurement result as a physical signal. Use a PS-Simulink Converter block to connect this port to Simulink® blocks, such as Scope or Display.
V — Voltage, V
Physical signal output port for the voltage measurement.
+ — Positive terminal
Electrical conserving port associated with the sensor positive terminal.
- — Negative terminal
Electrical conserving port associated with the sensor negative terminal.
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Introduced in R2007a