wait
Pause execution of a script. You can pause the script until a particular Script trigger is received or until a specified number of samples are generated.
Usage:
- Pause the execution until a particular Script trigger is received:
wait until scripttrigger0
Note If the Script trigger is received before the wait instruction then the script moves to the next instruction with the smallest possible delay. If you want to ignore Script triggers received before a wait statement, use the clear instruction. - Pause the execution for a finite amount of time:
wait <number of samples>
Examples:
- Generate myWfmA, wait for receipt of a Script trigger,
then generate myWfmB:
generate myWfmA
wait until scripttrigger0
generate myWfmB - Generate the sequence myWfmA, myWfmB five times; wait for receipt of a Script trigger; generate myWfmC, myWfmD 10 times; wait for receipt of a Script trigger:
repeat forever
repeat 5
generate myWfmA
generate myWfmB
end repeat
wait until scripttrigger0
repeat 10
generate myWfmC
generate myWfmD
end repeat
wait until scripttrigger0
end repeat - Generate the sequence myWfmA, wait 100 samples, then generate myWfmB:
generate myWfmA
wait 100
generate myWfmB
Back to Scripting Instructions