Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Saving and Loading Scripts

You can save scripts that you create in the Script Editor of the LabVIEW MathScript Window. Complete the following steps to save a script.

  1. In the LabVIEW MathScript Window, select File»Save Script. You also can click the Save button on the Script page of the LabVIEW MathScript Window.
  2. In the file dialog box, navigate to the directory in which you want to save the script.
  3. Enter a name for the script in the File name field. The name must have a lowercase .m extension if you want LabVIEW to run the script.
  4. Click the OK button to save the script.

You can compile a script when you save it to decrease the run-time compilation time. In the LabVIEW MathScript Window, select File»Save & Compile Script.

You can load a saved script in the MathScript Node or paste scripts directly from the Script Editor into the MathScript Node and vice versa.

You also can load existing scripts into the LabVIEW MathScript Window. In the LabVIEW MathScript Window, select File»Load Script or click the Load button on the Script page to load the script you want.


Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit