script/end script

NI Script Editor

script/end script

Use the script/end script statement to define a set of instructions to be contained within a single script and to associate a name with that script.

Script names must be unique, and they cannot have the same name as a waveform name.

Usages:

  • Create a script

    script <script name>
      <instructions>
    end script

Examples:

  • Create a simple script named myScript to generate myWfm:

    script myScript
      generate myWfm
    end script
  • Create multiple scripts named myScript1 & myScript2:

    script myScript1
      generate myWfmA
    end script

    script myScript2
      generate myWfmB
    end script

Back to Scripting Instructions