Scripts

NI Digital Waveform Generator/Analyzer

Scripts

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.

You can create a script to manage dynamic generation based on multiple waveforms and triggers. For example, you could download waveforms A, B, C, and D into device memory. You could then write a script that would wait for a trigger to initiate dynamic generation and, upon receiving this trigger, generate waveform A three times, then generate marker 0, and finally generate waveforms B, C, and D twice (BCDBCD).

A simple script example is shown below:

script myFirstScript   generate countUp
  generate allOnes
  generate countDown
end script

When executed, this script generates three waveforms (countUp, allOnes, and countDown) consecutively.

Related Topics: