LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mixed signal graph: scaling of x-axis

Hi all,

 

I am writing a simple program in LabVIEW using DAQ assistant reading 4 signals from 4 AI channels. I have samples to read at 125 and freq at 250.

I am trying to display this data on mixed signal graph. However, the x-axis cannot be scaled! I scale it to say show 5 s of data, but I still get ~ 0.5 s of plots. They don't stretch out to 5 s. If I change samples to read to 1000, then the graph stretches out to 2 s but then the system gets slow.

 

Please see attached. Any help would be much appreciated!

 

Saif

Download All
0 Kudos
Message 1 of 3
(3,143 Views)

Hi Vhha,

 

I have samples to read at 125 and freq at 250.

Ok, this makes for 125 Samples / 250 Samples/s = 0.5 s. Getting data for 0.5s sounds familiar, or?

 

If I change samples to read to 1000, then the graph stretches out to 2 s

Same calculation: 1000 / 250/s = 2s…

 

I scale it to say show 5 s of data, but I still get ~ 0.5 s of plots.

The x axis scaling of the graph has nothing to do with your DAQ part. And a graph only displays the data you provide it in your wire!

 

Solution: when you want to show more data in your graph you need to provide more data to the graph! Or in other words: collect the data in a buffer (aka array)!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 3
(3,053 Views)

Thank you so much for your guidence 

 

 

 

 

 

 

 

 

 

0 Kudos
Message 3 of 3
(3,008 Views)