This content is not available in your preferred language.
The content is shown in another available language. Your browser may include features that can help translate the text.
Memory allocation is typically handled automatically by DAQmx. Refer to KnowledgeBase DAQmx Buffer Size Allocation for Finite or Continuous Acquisition for more information. You can manually override NI-DAQmx's choice of buffer size by calling the DAQmx Buffer property node found on the functions palette under Hardware Interfaces>>NI-DAQmx>>Task Config/Ctrl>>Buffer Properties. This property node overrides the automatic buffer allocation that NI-DAQmx performs. The DAQmx Buffer property node allocates the acquisition buffer based on its input parameter Buffer Size, which is specified in terms of the number of samples the buffer can hold for each channel in the task. You can also use the DAQmx Buffer property node to query the amount of memory currently allocated by DAQmx. For more information, refer to the NI-DAQmx Help. The snippet below shows a common way of adding the DAQmx Buffer property node into a DAQmx task code. The buffer needs to be manually overridden before the task starts so it is common to place it after the virtual channel is configured but before the task starts.
Thank you for your feedback.
You changed your response to Not Helpful
You changed your response to Helpful
Collaborate with other users in our discussion forums
A valid service agreement may be required, and support options vary by country.