Main Content

Current Sensor

R2026b

Current sensor in electrical systems

  • Current Sensor block

Libraries:
Simscape / Foundation Library / Electrical / Electrical Sensors
Simscape / Electrical / Sensors & Transducers

Description

The Current Sensor block represents an ideal current sensor, that is, a device that converts current measured in any electrical branch into a physical signal proportional to the current.

Use the + and - ports to connect the sensor in series with the other blocks in the branch where you want to measure the current. Port I 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.

Examples

Ports

Output

expand all

Physical signal output port for the electrical current measurement.

Programmatic Use

Port: I

Conserving

expand all

Electrical conserving port associated with the sensor positive terminal.

Programmatic Use

Port: p

Electrical conserving port associated with the sensor negative terminal.

Programmatic Use

Port: n

Extended Capabilities

expand all

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

Version History

Introduced in R2007a