Adding Instructions
These options are all available by clicking the add instruction buttons on the toolbar.
Generate
Generates a named waveform. You can generate the entire waveform or a subset of it. You can also choose to generate a marker at a specified location in the named waveform. For example, to generate a marker at the 150th sample of the waveform, type 150 in the Marker 0 textbox.
Repeat
Repeats a set of instructions. You can repeat a finite number of times, repeat forever, or repeat until a hardware Script trigger is received.
If/Else/End If
Determines what sections of a script to execute, based on whether a particular Script trigger was received.
Wait
Pauses execution until a Script trigger is received.
Clear
Ignores a previously latched Script trigger. This option is typically used before the wait or repeat until instructions. For example, if the two instructions in myScript are:
script myScript
generate mywfm
wait until scriptTrigger0
end script
The Script trigger may arrive when mywfm is being generated. So when Wait until scriptTrigger0 is called, it is executed after the shortest possible delay. If you wish to ignore previously asserted Script triggers, then use the clear instruction:
script myScript
generate mywfm
clear scriptTrigger0
wait until scriptTrigger0
end script
Next topic: Editing Scripts