Scripting Instructions

NI RF Signal Generator

Scripting Instructions

Scripts consist of five primary instructions: generate, repeat/end repeat, wait, if/else/end if, and clear. Additionally, all instructions in a script are surrounded by the keywords script <script name>/end script. Multiple scripts can exist on the device at one time—you can choose which script to execute by referencing the script name.

For examples of scripting applications, refer to Common Scripting Use Cases.

 Note  Some waveform names allowable in NI-RFSG cannot be used with the NI Script Editor. When working with scripts, ensure that your waveform name does NOT:
  • contain spaces
  • start with a number
  • contain reserved words (such as generate or repeat)

Refer to the Script Editor Help for more information. To view the NI Script Editor Help, Launch the NI Script Editor and select Help»Script Editor Help.