Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Viewing the Data in a Script at Run Time (MathScript RT Module)

LabVIEW 2012 MathScript RT Module Help

Edition Date: June 2012

Part Number: 373123C-01

»View Product Info
Download Help (Windows Only)

Use the LabVIEW MathScript probe to view the data in your script in a MathScript Node as a VI runs. The MathScript probe displays a list of all variables you define in your script and previews variables you select. The MathScript probe also displays the output that LabVIEW generates from your 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.

Use the MathScript probe with execution highlighting, single-stepping, and breakpoints to determine if and where data is incorrect in a script in a MathScript Node. If data is available, the probe immediately updates and displays the data during execution highlighting, single-stepping, or when you pause at a breakpoint.

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. (Optional) To locate the LabVIEW MathScript Probe window from the block diagram, right-click the MathScript Node associated with the MathScript probe and select Find Probe from the shortcut menu. LabVIEW displays the Variables page of the LabVIEW MathScript Probe window and highlights the label of the MathScript Node.
  3. Select a variable in the Variable List to view it in the Preview Pane.
  4. 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.
  5. 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.

 

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