LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to link cursors from multiple waveform graphs?

I am viewing six sets of data on separate waveforms graphs and would like to know if it is possible to link the cursors from each of these graphs such that when I move the cursor on one graph the cursors on the other graphs follow.

For clarity I have chosen not to plot the six data sets on one graph.
0 Kudos
Message 1 of 7
(4,367 Views)
Short answer -- yes -- use property nodes for each graph and have the cursor position properties of one graph determine the cursor position for the others. (Example with 2 graphs attached[lv6.1]).
Longer answer - if you want to have the cursors snapping to points or locked to plots it may be more difficult.

Ian
Message 2 of 7
(4,367 Views)
I am currently using lv6.02 and have tried the property node approach. I read the cursor position from one plot and write it into the cursor position for the other plot(s) and it doesn't change the attributes of other cursors.

Any suggestions or examples in lv6.02?
Thanks for the help so far.

bp
0 Kudos
Message 4 of 7
(4,367 Views)
Hi,
I have not looked at the original example so I don't know why it is not working for you but...

I knocked up this example, seems to work OK (LV6.02)

It seems you need to use the Cursor List Array.

This example should work with any number of cursors; I assume you will need the same number of cursors on both graphs.

Hope it works OK for you.

Regards,

DaveR.
0 Kudos
Message 5 of 7
(4,367 Views)
You are correct!

I was just using the cursor location attributes without directly accessing the cursor list array. Now I pull the cursor position from the cursor list array, set the position and then insert it back into the bumdle and it works like a charm.

Thanks!
0 Kudos
Message 6 of 7
(4,367 Views)
Not sure if using the Cursor List is the only way.
I also could not track more than one cursor by accessing the attributes directly, even after setting the Active or Selected Cursor properties.

Accessing the Cursor List seems fine but a there is a definite time lag in the demo (at least on my P200!)which could build up if you have 6 graphs. Maybe someone will post a faster solution.
Regards,

DaveR.
0 Kudos
Message 7 of 7
(4,367 Views)
bp wrote:
> I am viewing six sets of data on separate waveforms graphs and would
> like to know if it is possible to link the cursors from each of these
> graphs such that when I move the cursor on one graph the cursors on
> the other graphs follow.
>
> For clarity I have chosen not to plot the six data sets on one graph.


Hi,
I would say that was possible. You can create, read and write property
nodes for the cursor positions. Obviously this is going to be simpler if
one graph's cursors act as a master control for the others otherwise you
are going to have to be a bit clever and sense on which graph the user
is moving the cursors. Although nedding some thought even this should be
possible.

Regards,
Dave.
0 Kudos
Message 3 of 7
(4,367 Views)