Power Meter (powerMeter)
The average input and output power and the efficiency of a converter, while the circuit runs.
Group: Control · Kind: {"block":"powerMeter","kind":"control"}
When to use it
Use it to see a converter's efficiency settle during the run, or to stop a sweep point once it has. Use Power Factor Meter for one AC port.
Pins
| Pin | Domain | Meaning |
|---|---|---|
vin |
signal | Input voltage, from a voltmeter |
iin |
signal | Input current, from an ammeter, into the converter |
vout |
signal | Output voltage, from a voltmeter |
iout |
signal | Output current, from an ammeter, into the load |
freq |
signal | Optional frequency in hertz that sets the window |
pin |
signal | Average input power |
pout |
signal | Average output power |
eff |
signal | Efficiency pout/pin, 0 while pin is not positive |
Common parameters
f: Frequency the powers are averaged over: the switching frequency of a DC-DC converter, the line frequency of an inverter (Default: required)cycles: Window length in periods of f; whole periods give exact figures (Default: 1)
Parameters
| Key | Unit | Default | Typical range | Description |
|---|---|---|---|---|
f |
Hz | required | Frequency the powers are averaged over: the switching frequency of a DC-DC converter, the line frequency of an inverter | |
cycles |
— | 1 | Window length in periods of f; whole periods give exact figures |
Parameter descriptions are in English in both languages.
Model
Over the last cycles/f seconds pin = mean(viniin) and pout = mean(voutiout), each integrated with the trapezoidal rule, and eff = pout/pin. A window of whole switching periods removes the switching ripple from both, so the efficiency is exact once the converter has settled.
Common mistakes
- The efficiency reads high or low while the output capacitor is still charging, because part of pin goes into stored energy. Read it after the output has settled, or use a window of many cycles.
- f has no default: set it to the switching frequency of a DC-DC converter, or to the line frequency for an inverter or a rectifier, whose power pulses at twice that frequency.
Problems rules: pin.unconnected
Datasheet and sources
A converter data sheet gives efficiency curves against load at a stated input voltage; set the load and input to one point of the curve and compare eff with it once the run has settled.
Example
Open the example with the command file.openExample and the name demo:powerMeter.
Generated by cargo xtask reference from the usage texts and parameter specs. Do not edit by hand.