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

Debugging Scripts

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Use script nodes to execute math scripts in LabVIEW. LabVIEW provides script nodes for the LabVIEW MathScript syntax, the MATLAB® language syntax, and the Xmath syntax. To make debugging a script easier, use the following programming techniques:

  • Write the script and run it in the native program for testing and debugging purposes before you import it into LabVIEW.
  • Verify data types. When you create a new input or output, make sure that the data type of the terminal is correct. Also, create controls and indicators for inputs and outputs so you can monitor what values are being passed between LabVIEW and the script server engine. This allows you to pinpoint where a script node calculates a value incorrectly, if necessary.
  • Take advantage of the error-checking parameters for debugging information. Create an indicator for the error out terminal on a MathScript Node, a MATLAB script node, or an Xmath script node before you run any VI so you can view the generated error information at run time.
Note Note  You also can use a LabVIEW MathScript probe to view the data in a script in a MathScript Node as a VI runs.

Resources


 

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