LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

X scale Time Scale issue for stacked scroll updating Graph LV7.1

ok So I have an 8 channel Graph(8 different Y Axis plots) all reading from one device. They all need to by synced with real time. The Sample rate is variable. To get the "proper" Time Scale per sample I pass "1/(Sample Rate)" into XScale.Multiplyer during initialization case. It works great like this and gives proper time stamps. The problem is the window "size" shrinks the higer the sample rate. a 256 it is 4 seconds and at 960 is is only 1 second. I want a way to make it a constant 5 second window. I tried passing a static "1/200" in and while it did give a 5 second window it doesn't actually run at normal time. I tried messing with the "XScale.Minimum" and Max Chart values during the cycle loop but that didn't do anything anybody point me in the right direction here?
0 Kudos
Message 1 of 5
(2,459 Views)
Nobody have any help or ideas?
0 Kudos
Message 2 of 5
(2,449 Views)

I woulod look at using a x-y plot and using a timestamp for the x-axis, then the you should have a common scale. Is that what you are looking for?

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 3 of 5
(2,439 Views)

The Scale isn't the problem it is the size of the window. I just altered the "Chart History Length..." property and it seems to give the result I want. I am looking to see if I can alter this from a node in the code so I can change the history size based off the sampling rate

0 Kudos
Message 4 of 5
(2,437 Views)

What happens when you set a larger min and max range?

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 5 of 5
(2,401 Views)