LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart with compressing x axis

Solved!
Go to solution

L&G, 

most likely it is noob question, but I just can not accomplish that...

I have a data acquzed at 1000Hz from DAQ.

After that, I recording this data to file and plotting them to the waveform chart with preliminary decimation back to 1Hz.

What I am want to accomplish:

Initially, time scale of chart should start with default value ( let's say, from 10:00 to 10:02).

But with data collection, x scale should shrink to accomodate more and more data, effectivelly compressing the scale up to 3 hrs period of time. So at the end of recording scale should be from 10:00 to 13:00. 

Is there any way to accomplish that?

What have been tried allready:

If I manually put X scale range from 0 to 3600 or 7200, it will start from 1-hr or 2-hrs scale respectively, and this is not what I want. 

 

Appreciate your feedback.

 

I am also attaching screenshot of my code.

0 Kudos
Message 1 of 2
(2,671 Views)
Solution
Accepted by topic author SParkhonyuk

Hi Sparkhonyuk,

 

you decimate your data to 1S/s!?

 

Then you will get 10800 samples in 3 hours: set the history length of the chart to 10800 and plot those (scalar) samples. Set the x axis to autoscale…

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(2,668 Views)