DAQmx Error -200920 at DAQmxStartTask

Updated Feb 9, 2018

Reported In

Driver

  • NI-DAQmx

Programming Language

  • C

Issue Details

I'm getting error -200920 at DAQmxStartTask. The error says:

NON-FATAL RUN-TIME ERROR:  Function DAQmxWriteAnalogF64: (return value == -200920 [0xfffcef28]). Requested Every N Samples Event Interval is not supported for the given buffer size.  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.

Why is this happening, and how can I fix it?

Solution

To fix this, make your buffer size an even multiple of the nSamples input to DAQmxRegisterEveryNSamplesEvent. The error will be thrown unless that is the case.

WAS THIS ARTICLE HELPFUL?

Not Helpful