Real-Time Measurement and Control

cancel
Showing results for 
Search instead for 
Did you mean: 

Why can't I change the input buffer size for the 9205 module?

I'm attempting to read 16 channels of analog input using the NI 9205 module. I would like the sample rate for each channel to be 1000 S/s, and the number of samples acquired for each channel to be 100. 100 samples times 16 channels equals 1600 for the size of the input buffer. No matter what I attempt in the software I can't seem to change the input buffer size to 1600. I have tried both DAQmxSetBufInputBufSize and DAQmxCfgInputBuffer functions, and neither one seems to work.
 
I am attempting to acquire data continuously using a callback function to read the buffer when it becomes full.
 
When I run the code the following message is displayed:
 
  Measurements: Requested Every N Samples Event Interval is not supported for the given Data Transfer Mechanism and buffer size.
 
To keep DMA or USB bulk as the Data Transfer Mechanism, modify the buffer size and/or the Every N Samples Event Interval so the buffer size is an even multiple of the Every N Samples Event Interval. To keep the same Every N Samples Event Interval and buffer size, change the Data Transfer Mechanism to interrupts, if supported.
Property: DAQmx_Every N Samples Acq Into Buffer Event Interval
Requested value: 1600
Buffer Size: 10000
 
Device:
0 Kudos
Message 1 of 2
(3,380 Views)
0 Kudos
Message 2 of 2
(3,365 Views)