Quantcast

Documentation Center

  • Trial Software
  • Product Updates

Power Sensor

Measure instantaneous or cycle-average power

Library

Sensors

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 Synchronous Buck Converter example.

Dialog Box and Parameters

Measurement type

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

Averaging period

The fixed period of time for measuring the average power. This parameter is only visible when you select Average power over a specified period for the Measurement type parameter. The default value is 1e-4 s.

Ports

The block has the following ports:

S

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

P

Physical signal port that outputs the measured power

Was this topic helpful?