LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change the display range of a waveform chart?

Hi,
For a waveform chart, it seems that x scale->range->maximum/minimum are responsible for  controling the display range of an array.
But when i feed data points to the waveform chart constantly (like DAQ), the upper and lower bound of data index also change. In this case, i can't fix the maximum and minimum anymore. i tried to relate one to the other by setting minimum=maximum-constant, although the range appeared to be correct, the chart blinked alot.
So how do i set the actual display range in a waveform chart, ending at the most recent data point? is there another register which records the range (or the start index of the buffered array in waveform chart) other than maximum/minimum values?

thanks alot!!!

Yi
0 Kudos
Message 1 of 2
(2,981 Views)
The scale range is defined by range = max - min. Since both are moving, you need to read the max (using a property node)  then write the min (or the reverse). Do this only the operator changes the range, not at each new data addition. See the attached example.
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 2
(2,977 Views)