Measure voltage in circuit
Simscape / Electrical / Specialized Power Systems / Sensors and Measurements
The Voltage Measurement block measures the instantaneous voltage between two electric nodes. The output provides a Simulink® signal that can be used by other Simulink blocks.
v — Instantaneous voltage measured between + and - conserving
Outputs the instantaneous voltage measured between the + and - conserving ports, specified as a scalar.
+ — Positive terminal
Specialized electrical conserving port associated with the positive terminal of the Voltage Measurement block.
- — Negative terminal
Specialized electrical conserving port associated with the negative terminal of the Voltage Measurement block.
Output signal — Output signal format
Complex (default) |
Specifies the format of the output signal when the block is used in a phasor simulation.
Complex to output the measured current
as a complex value. The output is a complex signal.
Real-Imag to output the real and
imaginary parts of the measured current. The output is a vector of two
Magnitude-Angle to output the magnitude
and angle of the measured current. The output is a vector of two elements.
Magnitude to output the magnitude of the
measured current. The output is a scalar value.
To enable this parameter, set the Simulation type
parameter of the powergui block to
C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.
Introduced before R2006a