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

Importing or Exporting Scripts

NI LabVIEW 8.6 Help
June 2008

NI Part Number:
371361E-01

»View Product Info

If you already have a script written in the LabVIEW MathScript syntax or the MATLAB® language syntax, you can import it into LabVIEW. You also can save a script written in LabVIEW to a text file.

Complete the following steps to import a script into a script node in LabVIEW.

  1. Select a MathScript Node or a MATLAB script node and drag out a region to place the script node on the block diagram.
    • MathScript Node
    • MATLAB script node
Note  You can create script nodes only in the LabVIEW Full and Professional Development Systems. If a VI contains a script node, you can run the VI in all LabVIEW packages.
  1. Right-click the script node and select Import from the shortcut menu to display a file dialog box.
  2. Select the file you want to import and click the OK button. The script text appears in the node.

Complete the following steps to save a script to a text file.

  1. Right-click the MathScript Node or MATLAB script node and select Export from the shortcut menu to display a file dialog box.
  2. Enter the name to use for the text file or select a file to overwrite.
  3. Click the OK button.
  4. Open the script in the LabVIEW MathScript Window or the MATLAB software.

MathScripts and scripts written in the MATLAB language syntax are text files. Although text files usually have a .txt extension, MathScript, like the MATLAB software and other mathematics software, processes scripts with a .m extension.


Resources


 

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