LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Reduce the graph speed without changing the xscale

Hello Experts,

 

I have a program which continously acquires analog data from DAQ card at 5 kHz. I am plotting the 2 channels on the waveform chart in strip chart mode. 

 

I would like to have the speed of the waveform reduced when the xscale is around 2s. When the xscale is around 5-6s, the speed of the waveform is correct for me. I am decreasing the xscale to 2s, so that I get better time resolution and I am able to see much better. When I use xscale of 2s, the graph updates too fast and I can hardly see anything. 

 

Is there any way to decrease the speed without compromising on the real time data acquisition?

 

 

0 Kudos
Message 1 of 5
(3,240 Views)
Make your chart reaaaaaaaaly wide! 😉
Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 5
(3,224 Views)
I tried that before but it is still fast!! Any other alternative?
0 Kudos
Message 3 of 5
(3,220 Views)

Remove your Graph updating (control) from the acquisition loop, that way you can choose the frequency of updating the graph independent of anything else.  Make another parallel loop (producer/consumer architecture) for your graph updating.

 

Store the graph data from the acquisition loop in an array using a shift register.  When you want to update the graph (i.e. at what frequency - could be after so many data point acquisitions - size of array) send the data to the graph loop (using queue). 

Message Edited by battler. on 05-08-2010 07:47 PM
Message 4 of 5
(3,212 Views)
I will try that.
0 Kudos
Message 5 of 5
(3,208 Views)