01-27-2014 11:39 AM
What is the preferred strategy in terms of writing data to the buffer of an output for a DAQmx digital or analogue output task?
I ask this because in the old pre-DAQmx days, you were supposed to stream data to the buffer in half buffer lengths, so you would write buffer_len samples on the first write, begin the replay task then write half buffers on susequent writes, the idea being that you were writing one half buffer while the output card was reading from the other half.
There does not seem to be anything to indicate this technique is still preferred when using DAQmx, but there are still lingering links that mention the teqchnique.
What's the recommended NI way, and if it has changed, why?
Thanks
Solved! Go to Solution.
02-05-2014 07:53 AM
Hi ToeCutter,
Currently there is no need to think of buffers at a very low level of the DAQmx Digital of Analog Output.
DAQmx handles it for you once you call the "DAQmx Write" function.
You can supply data for DAQmx Write in a variety of forms (starting with waveforms and ending with raw data),
it might be different depending on the application .
Please have a look at the manual of DAQmx Write VI:
http://zone.ni.com/reference/en-XX/help/370469AA-01/lvdaqmx/mxwrite/
Kind Regards,
02-05-2014 08:48 AM
Thanks for clearing that one up, Max.