LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200279 with NI 9211

Hi ZYOng, 

 

I'll probably just leave the samples/channel as unwired, it sounds like theoretically I don't need that except in specific cases. 

 

So, the document you sent says "For continuous acquisition, NI-DAQmx retrieves all of the samples that are available in the buffer when the DAQmx Read VI is called." If this is true, then how is it possible for the buffer to overflow? If I'm sampling once/sec, and reading once/sec, and every time it reads it takes ALL of the samples from the buffer, then how can the buffer overflow? Or, how can I possibly set a setting on any of these functions to make sure it doesn't overflow? It seems like under or over flow of data in the buffer is inevitable...

0 Kudos
Message 11 of 13
(55 Views)

UPDATE: 

 

I have tried to just use an NI example, to see what the issue was. I'm using the "Thermocouple - Continuous Input" example from the NI example finder. After about 45 minutes, I still get example 200279. So is the 9211 just not hardware you can collect data from continuously and indefinitely? Or am I still somehow doing something wrong? 

 

I've attached the 2019 version of the example I used.

0 Kudos
Message 12 of 13
(36 Views)

Hi Sophia,

 

please set a "number of samples to read" at the DAQmxRead function and try again.

 

As you seem to read just one channel I recommend a sample rate of 2S/s and "num of samples to read" = 1.

Now the loop should iterate at 2Hz…

 

What are the other settings in your tests? Do you have AutoZero enabled all the time?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 13 of 13
(18 Views)