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: cDAQ1
Task Name: <unnamedTask<0>
Status Code: -200877
Perhaps the attached code segment will help.
Note: please ignore the two previous postings which were sent inadvertently
Message Edited by bobcat7 on
04-15-2008 03:44 PM