beautypg.com

4 istimeininterval(), Nterval – Teledyne LeCroy Verification Script Engine (VSE) Manual User Manual

Page 73

background image

Teledyne LeCroy

Verification Script Engine Reference Manual




Page 73 of 115



13.4 IsTimeInInterval()


Verifies that a VSE time object is greater than a minimum VSE time object and less than a maximum
VSE time object.


Format:

IsTimeInInterval(min_time, time, max_time)


Parameters:

min_time

VSE time object representing a minimum interval


time

VSE time object representing a time interval


max_time

VSE time object representing a maximum interval

Return values:

Returns 1 if min_time <= time <= max_time,
Returns 0 otherwise.


Example:

t1 = Time(100);

t = Time(400);
t2 = Time(500);

If(IsTimeInInterval (t1, t, t2)) DoSomething();