LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -200361 on cDAQ-9178 with finite sample reads

I'm using the following setup, taking 1k samples at 1kHz on my AI cards (14k data points per run), and I'm getting error -200361 after indetermine runtime.  The actual behavior I'm seeing is that the compiled program stops taking AI data (keeps taking resistance data, as it's on a different task), but when I stop the program and open MAX, I get the error code.

 

A power cycle on the cDAQ chassis fixes the problem.  My task is set up to read N samples (1k samples per channel) at 1kHz, and the program reads the data, then does some processing on it, then repeats.  The program runs fine for a while and then I get buffer errors as described above.  The failure has occurred twice, once after 5 weeks of continuous operation, once after 2 weeks one day (just found out my team reset the hardware yesterday, and the program failed this morning).

 

Hardware:

cDAQ-9178 (need multiple AI timers)

NI-9472 DO

NI-9205 AI

NI-9201 AI

NI-9219 x3 Resistance

 

Both AI cards are used in one task for the data collection above.  The 9219s are used to measure resistance in the middle of the cycle, and so are on a separate task.

 

Any thoughts?

0 Kudos
Message 1 of 4
(3,277 Views)

Hi JeffOverton,

 

Sometimes a buffer overflow error occurs when the rate and samples to read in DAQmx are not configured correctly. The following article has some information on how to avoid a buffer overflow: http://digital.ni.com/public.nsf/allkb/A224DA0551EEA073862574F60060AB6F.

 

Thanks!

Sunayna R.
Applications Engineering
National Instruments
0 Kudos
Message 2 of 4
(3,236 Views)

Thank you for the response, Sunaya.  I believe I identified the issue - I think our Windows build has issues with heavy USB traffic over extended periods.  After rebooting the laptop the issue disappeared, so I believe it was an issue with the USB driver.

0 Kudos
Message 3 of 4
(3,184 Views)

Hi Jeff,

 

I'm glad to hear that!

Sunayna R.
Applications Engineering
National Instruments
0 Kudos
Message 4 of 4
(3,178 Views)