LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can anyone tell me what's wrong with my queue or producer consumer loop?

Solved!
Go to solution

A Labview engineer helped me with the overall structure of my program, necessitated by the fast data sample rate and post processing requirements. He recommended the producer/consumer loop and using one of the example files (Cont Acq graph voltage - int clk) to do the actual data acquistion. So I put together the loop and go my two channels of data acq going in the producer loop. However, nothing's getting picked up in the consumer loop and none of my data gets displayed over there.

 

Anyone care to take a look at it and let me know what I'm doing wrong?

0 Kudos
Message 1 of 4
(2,702 Views)
Solution
Accepted by topic author xander18

It seems like the only time you would write data to the Queue (in the producer loop), would be when you stop the DAQ while loop or the DAQ throws an error.

Perhaps you should place the Enqueue Element node into the DAQ while loop.

CLD | CTD
LabVIEW 2011 SP1 | TestStand 4.5
Message 2 of 4
(2,698 Views)

Your Enque Element should be inside the while loop where you aquire the data.  As it is now, the data has to stop being aquired before you send the last set of aquired data.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
Message 3 of 4
(2,688 Views)

Perfect! Worked like a charm. That makes sense, I assumed it was something along those lines that someone would be able to spot in a second. Gave you both kudos, now not sure who to set as the solution to the problem.

0 Kudos
Message 4 of 4
(2,675 Views)