LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Display graph values when mouse hovers over

Is there a way to display value of a point on a xy graph when mouser hovers over it.  (similar to what we see in excel).  I have multiplte xy graphs.  I am using LabVIEW 8.2
 
 
Thanks,
 
Appu
0 Kudos
Message 1 of 14
(8,583 Views)
this should get you started.



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 2 of 14
(8,575 Views)
tried something similar in my design, but it just hangs up the entire program and nothing works Smiley Indifferent
 
I placed it in my main while-loop, but before the program even reaches that point it's all messed up. What am I doing wrong?
 
I have a waveformchart that I show a small part of, the range 0.9 to 1.1 and whenever a button is pressed, the value stored is a 1 (otherwise 0), and that way I get a cross for where a comment was inserted. This chart scales with my XYgraph and want to be able to see what comment was entrered then moving the mouse over the cross, so here's my approach:
 
The comments are stored in rows, first column is the comment itself and then the iteration number in the loop.
 


Message Edited by Tohatsu on 01-30-2008 02:56 AM
0 Kudos
Message 3 of 14
(8,382 Views)
Hello Jhoskins ,
could you possibly save it in labview version 8.0 so i can look at it too?
Thank you


Message Edited by microes on 01-30-2008 03:08 AM
0 Kudos
Message 4 of 14
(8,376 Views)
Here's Jhoskins first post in 8.0 format.
 
Also added my code in 8.0 format, just did a save for previous verson, so dont know if it's all encoded correctly.
Download All
0 Kudos
Message 5 of 14
(8,365 Views)

Tohatsu,

 

I am not sure exactly what you are trying to do but the way you have went about doing things is not the way to code in LV. Fist off break your code into functional blocks and use these functional blocks as Subvi's. This will make your block diagram easier to read. Once you do this you can get rid of a lot of code. Also you need to learn how to use the event structure, right now the way your code is set up to use it is not correct. Have a look at the examples that ship with LV. i am not even going to begin to try to understand your code because the diagram is so large. Please do not take all of this the wrong way I am not trying to be hard on you or anything, I am just giving you some constructive criticism..

  1. Break your code down into functional blocks and use subvi's to perform those blocks of code.
  2. Have a look at the examples on how to use an event structure.
  3. Have a look at state machines

You would also benefit from getting the book called Labview for everyone, third edition, jeffrey travis and james kring.

You have a lot going on in this VI. Use the eventstucture to your advantage instead of as a hinderence like it is now. the way your code is set up now everything runs in your while loop, then it waits for an event to fire. in your case the while loop will not run again until the mouse moves over the waveform chart. You are on the right track, you just need to get some fundamental basics down and you will figure out what is going on.

Thanks for converting the code to 8.0 for me.

 



Message Edited by Jhoskins on 01-30-2008 09:17 AM



Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 6 of 14
(8,350 Views)

I know this is an old post, but this is what I do to display data on a mouse over from an XY Graph.

 

-Branson 

Download All
0 Kudos
Message 7 of 14
(8,047 Views)

This is something I threw together today for someone. That is why it is so messy. This is not a bad way to do it. This VI uses annotations that follow the cursor around inside the graph.

 

Just thought it was kind of cool.




Joe.
"NOTHING IS EVER EASY"
0 Kudos
Message 8 of 14
(8,018 Views)

I'm interested in seeing it, but I have labview 8.2...  can you post a screen shot or save it in labview 8.2?

 

Thanks,

Branson

0 Kudos
Message 9 of 14
(7,989 Views)

I havent tried actually coding this yet, but heres an idea :

- use an event, triggered by a mouse movement

- place a cursor at the location nearest the mouse

- display the coordinates of the cursor.

Cory K
0 Kudos
Message 10 of 14
(7,978 Views)