12-13-2006 12:28 PM
12-13-2006 01:22 PM
01-30-2008 02:56 AM - edited 01-30-2008 02:56 AM
01-30-2008 03:06 AM - edited 01-30-2008 03:08 AM
01-30-2008 03:23 AM
01-30-2008 08:16 AM - edited 01-30-2008 08:17 AM
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..
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.
03-18-2009 03:52 PM
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
03-19-2009 04:11 PM
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.
03-20-2009 09:44 AM
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
03-20-2009 10:54 AM
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.