Main Content

Power Sensor

Ideal instantaneous or cycle-average power measurement

  • Power Sensor block

Libraries:
Simscape / Electrical / Sensors & Transducers

Description

The Power Sensor block calculates the power taken by the load connected across the + and - terminals under the assumption that only the load is connected to the + terminal. Refer to the block icon for the arrangement of internal current and voltage sensors.

The sensor can return either instantaneous power, or power averaged over a fixed time period. Use the latter option for periodic current and voltage waveforms such as those associated with PWM control.

The following figure shows how you connect the block to measure power dissipated in a resistor.

For an alternative workflow using data logging to view component powers, see the Buck Converter example.

Examples

Ports

Output

expand all

Physical signal port that outputs the measured power

Conserving

expand all

Electrical conserving port connected to the positive supply rail

Electrical conserving port connected to the positive terminal of the load

Electrical conserving port connected to the negative terminal of the load

Parameters

expand all

Select whether you want to measure Instantaneous power or Average power over a specified period. The default value is Instantaneous power.

Fixed period of time for measuring the average power.

Dependencies

This parameter is visible only when you select Average power over a specified period for the Measurement type parameter.

Extended Capabilities

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

Version History

Introduced in R2012a