Main Content

Current Measurement

Measure current in circuit

  • Current measurement block

Libraries:
Simscape / Electrical / Specialized Power Systems / Sensors and Measurements

Description

The Current Measurement block measures the instantaneous current flowing in any electrical block or connection line. The Simulink® signal output provides a signal that other Simulink blocks can use.

The power_currmeasure example uses four Current Measurement blocks to read currents in different branches of a circuit. To open this example, at the MATLAB® Command Window, enter power_currmeasure.

Ports

Output

expand all

Simulink signal associated with the instantaneous current flowing in any block or connection line.

Conserving

expand all

Specialized electrical conserving port associated with the positive terminal of the Current Measurement block.

Specialized electrical conserving port associated with the negative terminal of the Current Measurement block.

Parameters

expand all

Format of the output signal to use when you use the block in a phasor simulation.

Set this parameter to Complex to output the measured current as a complex value. The output is a complex signal.

Set this parameter to Real-Imag to output the real and imaginary parts of the measured current. The output is a vector of two elements.

Set this parameter to Magnitude-Angle to output the magnitude and angle of the measured current. The output is a vector of two elements.

Set this parameter to Magnitude to output the magnitude of the measured current. The output is a scalar value.

Dependencies

To enable this parameter, in the powergui block, set the Simulation type parameter to Phasor or Discrete Phasor.

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced before R2006a