LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Display Data Value at Cursor Position?

I have a customer who would like to see the value of a data point on a graph
when the mouse cursor is placed on the data point, or even if the point was
clicked. I can display the data for a requested point in a numeric control
off the chart, but not in the method he has requested.

Has anyone done this, or have any ideas how to aproach it?
0 Kudos
Message 1 of 3
(3,224 Views)
You could convert the data point to a string using "sprintf" and
use PlotText() to place the value on the graph at the cursor
position,remember to store the handle returned by the PlotText() function so
that you can delete the old value when the cursor is moved and another point
selected.

Euros
Message 2 of 3
(3,224 Views)
I could not find the PlotText() function.Please let me know which class/control it belongs.
0 Kudos
Message 3 of 3
(3,224 Views)