ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how can i get the coodinates of the graph by rolling over it?

Hi all,
I am using a graph where x axis is voltage and y axis is current. I want to show the coordinates of this x-axis and y-axis near the cursor itself and not on any indicator when i move it over any point on the graph. is it possible? i tried by using the event structure with mouse move event and in the co-ords what is get the is not the graph co-ordinates
0 Kudos
Message 1 of 7
(3,613 Views)

Hi Saki,

 

Can you post a picture of what you get?

0 Kudos
Message 2 of 7
(3,612 Views)

Try the graph properties Cursor.PosX and Cursor.PosY.

>

"There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal
0 Kudos
Message 3 of 7
(3,603 Views)

I would draw the text into a floating picture indicator.  You can tweak offsets and colors to suit your needs.

 

GraphPointLocator.png

 

 

0 Kudos
Message 4 of 7
(3,593 Views)

@vt92 wrote:

Try the graph properties Cursor.PosX and Cursor.PosY.


You can send them right to the cursor name property and display them easily too!

untitled.PNGuntitled2.PNG

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 5 of 7
(3,585 Views)

@NIquist wrote:

@vt92 wrote:

Try the graph properties Cursor.PosX and Cursor.PosY.


You can send them right to the cursor name property and display them easily too!

 


If you don't mind being stuck to the middle portion of your graph.  Smiley Wink

0 Kudos
Message 6 of 7
(3,581 Views)

Yeah, I guess having to scroll the axes sometimes is the price you pay.  Unless you add code to do that automatically as you near the graph borders....  Hmmm....

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 7 of 7
(3,577 Views)