beautypg.com

4 sleep instruction, Sleep instruction, Sleep inst – Teledyne LeCroy UWBTrainer Exerciser Script Language User Manual

Page 60: Timeout_par

background image

LeCroy Corporation

UWBTrainer Exerciser - Generation Script Language Reference Manual

52

9.7.4 Sleep Instruction

This instruction instructs UWBTrainer to Sleep for the specified number of microseconds before
processing the next instruction.

Format

Sleep ( sleep_value )

The instruction named parameter is:

Timeout: Specifies the timer timeout in microseconds.

Note: The sleep instruction is a shortcut to using Timer and Wait instructions (see the Wait
Instructions). The sleep instruction is exactly the same as the following set of instructions:

StartTimer ( timer_value )

Wait ( TIMER )

StopTimer

Example

Main

{

# Sleep for 65538 microseconds.

# The following instructions are executed afterwards:

Sleep (

65538

)

Send FrameXYZ

# This set of StartTimer, Wait, and StopTimer Instructions is the

# same as the Sleep instruction above.

StartTimer(

65538

)

# Start the timer with timeout 2000 usecs.

Wait( TIMER )

# Wait for the timer. [Condition “TIMER”]

StopTimer

# Stop the timer and revoke the “TIMER”

# condition.

Send FrameABC

}