Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

DAQmx buffer size/write size

Solved!
Go to solution

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

0 Kudos
Message 1 of 3
(4,532 Views)
Solution
Accepted by ToeCutter

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.

Analog_write.PNG

 

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,

Message 2 of 3
(4,450 Views)

Thanks for clearing that one up, Max.

0 Kudos
Message 3 of 3
(4,442 Views)