Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

How Do I Get the Data Value of a Cursor at a Specific Point?

Primary Software: LabVIEW Development Systems>>Professional Development System
Primary Software Version: 8.5
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem:
I have a cursor on a Waveform Graph that is at a specific data point in the data set and I want to see the value at that point of the cursor. I see that there are many property nodes available for cursors, but which one should I use to get the value that the cursor is currently at?


Solution:
There is not a single property for cursors on a graph that will get the data value at the current position. Instead, the best way would be to use two different property nodes for the cursor. To do this programmatically, creating a Cursor Plot property node allows you to control which plot your cursor is on and then using the Cursor Index property node allows you to read what index in the data set your cursor is at. The final step will just involve indexing the array of data that is plotted on the graph to get that specific value. The image below shows this process.



Related Links:
KnowledgeBase 2NADQ10Q: What Do All of the Properties for a Waveform Graph Do?

Attachments:
cursor properties.PNG




Report Date: 04/16/2008
Last Updated: 04/17/2008
Document ID: 4KFHK220

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit