07-15-2014 09:35 AM
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.
Solved! Go to Solution.
07-15-2014 09:38 AM
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.
07-18-2014 08:42 PM
Hi crossrulz,
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.
07-18-2014 09:35 PM
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.