LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using a queue to increase buffer

Hi, I am aquiring data from a 3 axis accelerometer, at a pretty high sampling rate, 10K. I have seen that "randomly" there are peaks in my data above what resonant frequency applitutes should be. The spikes are unreasonably big and almost never occur on the first while loop iteration.

 

I feel that it may be due to some data being corrupted or something happening when the data is coming from the daq device. I sometimes get the buffer overload error, that the computer cannot keep up and the daqs buffer is full. But even when I don't these peaks occur. 

 

Is there a way to send the data to a queue to effectivly increase the buffer that I can work with when acquiring data?

I'm using LabVIEW 8.6 on a 6062E PCMCIA. 

 

I don't have much experience with queues but I have been trying to read up about it and look at some example vi's. 

 

Thanks,

Arthur J.

0 Kudos
Message 1 of 2
(2,110 Views)

Before you investigate a software fix for what seems to be a hardware problem, firstly, try to get the 10k rate read working. Pare down your code until the read loop is working.

 

Perhaps you are not reading the data fast enough? The loop where you are reading the data needs to be lean. Preferably nothing in it but the Read VI and an indicator.

I have an example where I was running at 10k rate just fine all day. I later edited the loop, where I was sloppily hammering a disable Property Node. That one Property Node was slowing down the loop enough that the 10k rate would not work.

 

 

Richard






0 Kudos
Message 2 of 2
(2,083 Views)