Scripts
- Updated2025-10-20
- 1 minute(s) read
You can link and loop multiple waveforms together in a generation operation using a script. A script is a series of instructions that indicates how waveforms saved in the onboard memory should be sent to the DUT.
The script can specify the order in which the waveforms are generated, the number of times they are generated, and the triggers and markers associated with the generation.
Note If you are using a vector signal transceiver (VST) instrument,
some script instructions may not be supported using NI-RFSG.
Basic Scripting Example
You can create a script to manage waveform generation based on multiple waveforms and triggers. For example, you could download waveforms A, B, C, and D into instrument memory and script it to do the following:
- Wait for a trigger to initiate generation
- Upon receiving this trigger, generate waveform A three times with a marker at position 16 each time
- Generate waveforms B, C, and D twice (BCDBCD)
The following is the script of this example:
script myFirstScript
wait until scriptTrigger0
repeat 3
generate waveformA marker0(16)
end repeat
repeat 2
generate waveformB
generate waveformC
generate waveformD
end repeat
end script