2 getpwrpowervalue(), Ower, Alue – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual
Page 85

Teledyne LeCroy
Verification Script Engine Reference Manual
Page 85 of 115
17.2 GetPwrPowerValue()
This function returns the captured value of the Power (in microwatts) at the specified time.
Format:
GetPwrPowerValue( time )
Parameters:
time
The VSE Time object representing a time at which the Power sample value
should be returned. Null value will be returned if power wasn’t caputured or time
is out of range.
Example:
start_time = GetTraceStartTime();
step = Time( 1, 0 ); # 1 second
# Prints out 5 samples of Power with 1 second step from the start of trace
for( i=0; i<5; i++ )
{
ReportText( FormatEx( "At time %s - Power: %d microwatts",
TimeToText( start_time ), GetPwrPowerValue( start_time ) ) );
start_time = AddTime( start_time, step );
}