09-12-2008 04:06 AM
Hi all,
i am displaying 4 channel data on a graph.
Is there any way i can shift the postion(up or down) of any plot on the graph with the mouse?
Thanks
Ritesh
09-12-2008 05:15 AM
09-12-2008 09:40 AM
What do you mean by "moving the graph"? You can pan a graph using the graph palette. See the LabVIEW Help on graphs.
Or, are you trying to select a one of the plots with a mouse and then physically move it in terms of changing its data values?
09-12-2008 11:39 AM
smercurio_fc wrote:Or, are you trying to select a one of the plots with a mouse and then physically move it in terms of changing its data values?
Exactly what i want.
Thanks
Ritesh
09-12-2008 01:15 PM
09-13-2008 01:28 AM
smercurio_fc,
you got it right. i want to select a plot by clicking it and shift it up or down depending on the movement of the mouse. or in simple terms i want to drag a plot up or down, without changing the scale.
Thing is like this, i have a 4 channel data. the data actually is almost same with a difference of +- 10. but i am adding an offset to all the channels so that they could accomodate on whole of the screen. so, sometimes i want to have a closer look at 2 or more of the channels. so i need to superimpose those plots, or just drag and keep it very near to each other. it might sound weird. but this thing is application specific and the user has really appreciated this idea as it helps them alot in analzing the data.
Waiting for a positive reply.
Thanks
Ritesh
09-13-2008 11:24 PM
09-14-2008 05:43 AM
Since this is something I shall re-use soon, I have developed a solution to your question. To highlight the selected plot, instead of the solution proposed by smercurio, it uses a dedicated invoke node (there are a few that are not so popular... ;))
Enjoy ! 🙂
09-15-2008 05:39 AM
09-17-2008 02:24 AM
Hi,
I just wrote the the same function adding some more feature that i want.
I am using a boolean control. For TRUE, it acquires the data and displays it. For FALSE, it looks for any event to occur.
It works fine except for 1 case.
When the boolean is TRUE, and i move the cursor on the Graph, the VI just hangs. i cant click boolean or stop again. i have to use "abort execution" to stop the Vi.
I am attaching my code here. pls have a look at it let me know where is the fault.
Thanks,
Ritesh