This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

Programmatically Creating a Cursor for a Graph in LabVIEW

Updated Jan 22, 2024



  • LabVIEW

There are two ways to add the cursor to the graph in LabVIEW: either manually or programmatically.
In this article, we will explain on how to use LabVIEW to programmatically create the cursor to the graph.

In order to programmatically create a cursor, you must add values to the Cursor List property for a Graph Property Node. The following steps explain how to do this:
  1. Create a graph on the front panel.
  2. On the block diagram, right-click on the graph and select Create » Property Node.
  3. Select Cursor List as the property for the node, right-click on the property node and select Change to Write
  4. Right-click the input and select Create » Constant.  The constant will automatically appear as an uninitialized array of clusters, as shown in the diagram below:
  1. Initialize and set values for the elements in the cluster according to the desired cursor properties.  For information on what each element in the cluster corresponds to, take a look at the LabVIEW Help information provided for the Cursor List properties.
  2. To create multiple cursors, drag down the bottom edge of the Cursor List constant to expand your array.

Additional Information

You can easily view information about the elements in the cluster by activating the Context Help window.  The following information is displayed in the window when you view Context Help for the Cursor List Property: