Hi Sir:
If my sample rate is 100 Hz that means I can get data per 10 ms and I can get 4000 points in 40 seconds.
In this case, I set the attribute of xAxis as below.
xAxis.AutoSpacing = false;
xAxis.MajorDivisions.Base = 0;
xAxis.MajorDivisions.Interval = 200;
xAxis.Range = new NationalInstruments.UI.Range(0, 4000);
I can see the correct result(40 Seconds) in my waveform graph.
However, If my sample rate is 20 Hz that means I can get data per 50 ms and I can get 800 points in 40 seconds.
In this case, I set the attribute of xAxis as below.
xAxis.AutoSpacing = false;
xAxis.MajorDivisions.Base = 0;
xAxis.MajorDivisions.Interval = 200;
xAxis.Range = new NationalInstruments.UI.Range(0, 4000);
I see the incorrect result(40 Seconds) in my waveform graph.
There are only 8 seconds data appear in my waveform graph.
Could any body tell me how to set the correct attribute of xAxis?
Thank you very much!