Error -200279 Occurred Following Synchronizing Analog Input with NI-DAQmx Tutorial

Updated Sep 11, 2018

Reported In

Hardware

  • NI-9234
  • NI-9220

Software

  • LabVIEW
  • LabVIEW Professional
  • LabVIEW Base
  • LabVIEW Full

Driver

  • NI-DAQmx

Issue Details

My test system is with NI-9234 and NI-9220. And I want to synchronize those two modules. So I'm following the tutorial Synchronizing Analog Input C Series Modules with NI-DAQmx in LabVIEW. The tutorial link is here. I tried Delta Sigma Module and SAR Module part which is Figure 10 in the link. The example works well. But when I modified this code for converting Finite to Continuous and surrounded DAQmx Read APIs with While Loop, Error -200279 occurred after starting within minutes like below.

Error -200279 occurred at an unidentified location

Possible reason(s):

The application is not able to keep up with the hardware acquisition.

Increasing the buffer size, reading the data more frequently, or specifying a fixed number of samples to read instead of reading all available samples might correct the problem.

Solution

This is because of the different sample rate between NI-9234 and NI-9220. NI-9234 is DSA module and DSA module have specific sample rates.

For example, if you configured the 1000 sample rate on each module, the actual configured sample rate is different from each other. The rate of NI-9234 is 1652 and NI-9220 is 1000. This means 652 samples will be added in NI-9234 buffer every While Loop iteration. Because While Loop follows the lower rate if there are two different sample rate at the same Loop. 

Solution
Configure the same sample rate like NI-9234 datasheet. For using NI-9234 correctly, you should configure the sample rate like below figure.
f(s) is NI-9234 sample rate and f(M) is 13.1072MHz.
So you should configure the sample rate like 51.2KS/s, 25.6KS/s etc for solving this problem.

WAS THIS ARTICLE HELPFUL?

Not Helpful