3 getpwrvoltagevalue(), Oltage, Alue – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual
Page 86

Teledyne LeCroy
Verification Script Engine Reference Manual
Page 86 of 115
17.3 GetPwrVoltageValue()
This function returns the captured value of the Voltage (in microvolts) at the specified time.
Format:
GetPwrVoltageValue( time )
Parameters:
time
The VSE Time object representing a time at which the Voltage 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 Voltage with 1 second step from the start of trace
for( i=0; i<5; i++ )
{
ReportText( FormatEx( "At time %s - Voltage: %d microvolts",
TimeToText( start_time ), GetPwrVoltageValue( start_time ) ) );
start_time = AddTime( start_time, step );
}