Programming Generation Sequences Using Scripting

NI Script Editor

Programming Generation Sequences Using Scripting

You can "link and loop" between multiple waveforms in a generation operation using a script. A script is a set of instructions that describes the waveforms to be generated, the order in which to generate them, how many times they are generated, and so on. This section describes the syntax for creating a script, as well as how to use scripting in your applications.

A simple script example is shown below.

script myFirstScript   generate countUp
  generate allOnes
  generate countDown
end script

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