LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Master Scroll Bar

Hello all,

 

    I am just curious if it is possible to create a master scroll bar to adjust multiple graphs simultaneously? When running my labview code, one of the first things I always do before starting up the machine is to drag all of the x-axis scroll bars forward so that my trending data is seen in the middle of the graphs instead of the far right edge. It is just easier to watch fluctuations in the data set if the plots are changing in the middle of the graph rather than against the far wall. Any advice would be appreciated. Thanks!

 

0 Kudos
Message 1 of 4
(3,617 Views)

If you are using waveform charts, you can change the update mode of the chart to be similar to an EKG display.  This doesn't answer your question but it may give you another idea about displaying your data. There is a property node value called UpdateMode....setting it to 1 works more like an oscilloscope and setting it to a 2 works like an EKG.  0 is default.  

aputman
0 Kudos
Message 2 of 4
(3,608 Views)

You're talking about "graphs" but describing behavior of "charts" .  You do know there is a difference, right?

Terminology is important to get your questions answered.

 

The basic thing to look for is a property.  If you can write a property to the graph  / chart to do what you want it to do, then you can have a free-standing scrollbar and write the same value to the property of multiple graphs/charts, and accomplish what you want.

Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com


LinkedIn

Blog for (mostly LabVIEW) programmers: Tips And Tricks

0 Kudos
Message 3 of 4
(3,586 Views)

Are you using an event structure method for control of your graph UI?

 

I faced a similar issue and rather then dealing with managing the appearance of a single scrollbar, using the event structure everytime that the scroll position of one of the graphs was updated I simply passed that value through the event structures to all the other graphs.

 

I'm not sure if its easier or harder then the single-bar version but I ended up with it as using a tab control with about half of the pages containing graphs and only one graph per page it seemed like a more convenient solution then controlling the appearance and dissappearance of a floating scrollbar (However easy that may be).

 

[EDIT] As bird says for controlling the position of your chart it is a matter of using the property nodes. If you only want to graph to be updating in the middle of your chart as from the sounds of it you are just using the scroll-bar to centre your run when you start then you should be able to programmatically centre your charts over the last data point that was entered.

0 Kudos
Message 4 of 4
(3,565 Views)