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

Using the LabVIEW MathScript Probe

LabVIEW 8.5 Help
August 2007

NI Part Number:
371361D-01

»View Product Info

Use the LabVIEW MathScript probe to view the data in a script in a MathScript Node as a VI runs. The MathScript probe displays a list of all variables you define in the script and previews variables you select. The MathScript probe also displays the output that MathScript generates from the script. Unlike with supplied probes, you cannot configure the MathScript probe to respond to the data. For example, you cannot specify that you want to set a conditional breakpoint. You cannot use execution highlighting, single-stepping, and breakpoints within a script in a MathScript Node.

Complete the following steps to use the MathScript probe.

  1. Right-click a MathScript Node and select Probe from the shortcut menu. A floating LabVIEW MathScript Probe window appears. The LabVIEW MathScript Probe window includes the same components as the Variables page in the LabVIEW MathScript Window. You also can use the Probe tool to click a MathScript Node and display the LabVIEW MathScript Probe window.
  2. Place more MathScript probes on other MathScript Nodes in the VI. LabVIEW adds each MathScript Node to the Variable List on the Variables page of the LabVIEW MathScript Probe window. LabVIEW also adds a new Output page to the LabVIEW MathScript Probe window for each MathScript Node.
Note  To help distinguish between MathScript Nodes in the LabVIEW MathScript Probe window, assign a unique label to each node before you place a MathScript probe on the node. If you do not assign a unique label to each node, LabVIEW automatically numbers each MathScript Node in the LabVIEW MathScript Probe window.
  1. Run the VI. The LabVIEW MathScript Probe window displays data for each variable in the script.
  2. Select a variable in the Variable List to view it in the Preview Pane.
  3. Compare the data that appears in the LabVIEW MathScript Probe window to what you expect. You cannot use the LabVIEW MathScript Probe window to change data.
  4. Close the LabVIEW MathScript Probe window to remove the MathScript probe.

In the LabVIEW MathScript Probe window, when you right-click a MathScript Node or a variable in the Variable List, you can select from the following options in the shortcut menu:

  • Show Node on Diagram—Finds the associated MathScript Node. LabVIEW brings the block diagram that contains that node to the front and highlights the node.
  • Show Output Tab—Displays the associated Output page.

When you right-click in an Output page, you can select from the following options in the shortcut menu:

  • Clear—Clears the Output page.
  • Show Node on Diagram—Finds the associated MathScript Node. LabVIEW brings the block diagram that contains that node to the front and highlights the node.
  • Display Preferences—Displays the MathScript: Window Options page. Use this page to configure settings, such as the font style and the display format of numbers, for the Output page of the MathScript probe.

Resources


 

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