05-07-2009 02:51 PM
Hi There,
I am plotting a set of data (in x,y format) on a scatter plot. Is there a way in labview such that when i move mouse over some dot it can tell me information about that dot (like the name of that set).
Thanks in advance
Yogesh
PS: i am using Labview 8.2
Solved! Go to Solution.
05-07-2009 03:11 PM
The easy solution is to just use a cursor. Then you just move the cursor and the information is displayed in the cursor palette.
The harder solution is to monitor the MouseMove event with an event structure. In that event case you can wire the coordinates to the Map Coords to XY method to determine if you're over a point. Not sure how you want to display the info. With some sort of "tip-like" little window? Or just on an indicator on the front panel?
05-07-2009 06:05 PM
The problem with that is, it will display the x and y value only. But what i want is, i have another file with all the names for the each point. I am trying to find a way to link each name to each point and when i move cursor over some point i should be able to see what is the name of that point. I do not care if it is mouseover event or by just using cursor and string indicator.
Names of "name file" is arranged in same order as my points in spreadsheet.
Thanks
Yogesh
05-07-2009 07:44 PM
I made this program. It uses two text file as input. One file has name of each data set (32) in column while other file has values of each set for five different axis (in five rows and 32 column)). You can see in the program i am using a property node to change value of axes to see scatter plot of two axis i want. I also added a cursor and using another property node to get index value of that cursor. I am using that index value to get the right file-name in the string indictor. The problem i am facing is how to get file name everytime i move my cursor to next point. I used case structure with cursor move but using that hangs the program and i can not change anything.
I am using labview 8.2.
Thanks for help
Yogesh
05-07-2009 08:47 PM
The reason why it hangs is because you have 2 event structures inside a loop. You should only have one event structure in a loop. This is documented in the LabVIEW Help. With 2 event structures one of them will block the other.
Your code is also about 3 times larger than it needs to be: