LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

synchronize zooms on two waveform graphs

hi,
i have 2 waveform graphs. i'd like to synchronize zoom on both of
them, so when the user zoom on either, they'll display the same scale.
i thought about disabling the zoom pallette on one, so that zoom will
be available only on the other and then set the x-range of one to be
the same as the other. the problem here, is that i can only zoom on
one, not the other, not so user friendly.

any suggestions?

shai
please reply to shayv@hotmail.com

thanks
0 Kudos
Message 1 of 4
(3,261 Views)
Hi
Set one graph so that it has a palette and the other doesn't. Create
attribute nodes for both and select X SCALE INFO (all elements) and Y
SCALE INFO (all elements) and each. Now, for the attribute node of the
graph with the Palette, set it to read and the other to write. Wire the
two nodes together. RUN IT When you change the scale with the palette
(zoom)of one graph the other will change to match.

Andy



In article <37e150d4.460340304@news.netvision.net.il>,
shai@mns-israel.com (Shai) wrote:
> hi,
> i have 2 waveform graphs. i'd like to synchronize zoom on both of
> them, so when the user zoom on either, they'll display the same scale.
> i thought about disabling the zoom pallette on one, so that zoom will
> be available only on the other an
d then set the x-range of one to be
> the same as the other. the problem here, is that i can only zoom on
> one, not the other, not so user friendly.
>
> any suggestions?
>
> shai
> please reply to shayv@hotmail.com
>
> thanks
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 2 of 4
(3,260 Views)
there is no XSCALE INFO.
it's really
XSCALE->RANGE->ALL ELEMENTS.
YSCALE->RANGE->ALL ELEMENTS.
- crazycliffy
0 Kudos
Message 3 of 4
(3,214 Views)
You would have to use an event structure embedded in a loop. Everytime a mouse down event occurs on either one graph the other graph also changes accordingly. In the event structure you can embed the property nodes that manipulate the X and Y axes.

Please see the example program below for more information.

Thank you
Nandini Subramaniam
Applications Egnineering
National Instruments
0 Kudos
Message 4 of 4
(3,190 Views)