Current sensor in electrical systems
Simscape / Foundation Library / Electrical / Electrical Sensors
Simscape / Electrical / Sensors & Transducers
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.
I — Current, A
Physical signal output port for the electrical current 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