11-12-2015 07:22 AM - edited 11-12-2015 07:25 AM
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?
11-13-2015 06:52 PM
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!
11-20-2015 08:19 AM
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.
11-20-2015 09:14 AM
Hi Jeff,
I'm glad to hear that!