LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how does the DAQmx read.vi work in producer/consumer mode

Solved!
Go to solution

Dear all,

 

I have one question: how does the DAQmx read.vi work in producer/consumer mode ? 

I mean if i set the acquisition samples quantity is 5000,(see the enclosed picture), how does the DAQmx read.vi acquire the samples ?

5000 samples one time ?

And how does the write. vi work ? Also 5000 samples one time ?

 

Look forward to your reply.

Thank you.

0 Kudos
Message 1 of 4
(2,808 Views)

It will read 5000 samples per channel.

 

The Write Measurement File just writes whatever you give it.  It you send it 5000 data points, it will write the 5000 data points.


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
0 Kudos
Message 2 of 4
(2,806 Views)

Hi 

 

Yes, I think so that It will read 5000 samples per channel.

And I also think in the producer/consumer mode 5000*N samples will be stored in the stack.(N:channel quantity)

Am I right ?

Thank you for your reply.

0 Kudos
Message 3 of 4
(2,742 Views)
Solution
Accepted by topic author dffs

There is no "stack".

 

There is a queue.  Each element of the queue is going to contain whatever is sent to it on each execution of the Enqueue Element.  So if you are reading 5000 samples on N channels, and I see you have a waveform array,  Each element of the queue will contain a 1-D array of waveforms.  There will be N elements within that array, and the Y array in each of those waveforms will contain 5000 samples.

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