LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronizing scrollbars in two dirrerent chart

Hello !
Can anyone say how to synchronize two scrollbars in two different chart ?
I am displaying data in two different chart and if I want to look the chart
history
in one chart, so I drag the scrollbar. But I would like that also the other
chart moves at the same time.
Any hints for that available ? 🙂
0 Kudos
Message 1 of 3
(2,912 Views)
Jack,

Create attribute nodes for each of the charts. Set the attributes to X Maximum and Minimum of the X Scale Info. Set the attribute of the Master Chart to Read and that of Slave Chart to Write. Connect the Maximum and Minimum of two attribute nodes. Now, you can control both scrolls.
0 Kudos
Message 2 of 3
(2,912 Views)
> Can anyone say how to synchronize two scrollbars in two different chart ?
> I am displaying data in two different chart and if I want to look the chart
> history
> in one chart, so I drag the scrollbar. But I would like that also the other
> chart moves at the same time.
> Any hints for that available ? 🙂
>


The key is to read the scales from one chart and write them to another
chart. This will vary a bit if the charts don't have the same scaling,
but presumably both are time scales and that is what you want. The
specific way to do this is to Create property nodes for both charts,
navigate to select the X Scale Min and Max property values and connect
them. If using LV6.1, where you can detect events such as clicks, then
you can optimize this a bi
t and only do this while the mouse is down on
or near the chart or scrollbar.

Greg McKaskle
0 Kudos
Message 3 of 3
(2,912 Views)