7 timer instructions, 1 start timer instruction, Timer instructions – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual
Page 58: Start timer instruction, Autoreset_pa, Starttimer i, Timevar_pa

LeCroy Corporation
UWBTrainer Exerciser - Generation Script Language Reference Manual
50
9.7 Timer Instructions
You can register and manipulate the UWBTrainer microsecond resolution timer using Timer
instructions.
9.7.1 Start Timer Instruction
This instruction registers a special timer condition named “TIMER” and starts the timer if the timer
was already started with the new timeout value.
Format
StartTimer ( timer_value,
[
auto_reset
]
,
[
Time variable index
]
)
Note
1
: If the auto_reset parameter is set to 1, then the timer starts counting again. If the
auto_reset parameter is set to 0, then use a ResetTimer instruction to reset the timer.
The instruction named parameters are:
Timeout: Specifies the timer timeout in microseconds.
AutoReset: Specifies that the condition is automatically reset after it is triggered.
TimeVar: Specifies the index of the Time variable in which to keep the condition
timestamp when it is triggered. Values can range from 0 to 255.
No value indicates that this parameter is ignored.
By default, AutoReset is OFF, Timeout = UNDEFINED (Timeout parameter must be set to a
non-zero value to register a Timer condition), and TimeVar = UNDEFINED (timestamp is not
saved).
Note
2
: The timer used in this instruction allows jitter of several microseconds. If you need a
precise timer for scheduling frames, then use TxSleep instruction.
Example
Main
{
# Start the timer with timeout 2000 microseconds.
StartTimer (
2000
)
Wait( TIMER )
# Wait for the timer to elapse.
}