When I do
DAQmxErrChk DAQmxReadAnalogF64(taskHandle1, numSamps, -1, _
DAQmx_Val_GroupByChannel, data(0), totalSampsAllChannels, sampsPerChanRead, ByVal 0&)
where numSamps = n * 250, n integer, for certain values of n there is no problem, like n = 1 or n = 5.
But if I use n = 3, or 4 or 7 (and some others), I get error -200877. The message box has a long descriptiion in it, but it is chopped off. It goes like this:
Requested Every N Samples Interval is not supported for the given Data Transfer Mechanism and buffer size. To keep DMA as the data transfer mechanism modify the bufffer size and or the Every N Samples Interval so that the buffer size is an even multiple of the event interval. To keep the same event interval and buffer size change the. (and here it gets chopped off).
I did try making the buffer size an even multiple but that didnt resolve the issue. I wanted to try the second alternative, but of course I have no clue what it is. I looked in the NI error files but there is even less info in there.
Any help would be appreciated.
thanks,
saroj