05-28-2013 11:29 AM
Hi, All:
we have a LabVIEW application installed at several devices equipped with NI USB-6218 card. only one device is having problem of "On board memory overflow" ( Error -200361 ) frequently. All devices suppose run 24/7, but that problem device will pop up Error -200361 in less than 24 hr. Is this Error caused by the hardware issue of USB-6218 card? How can I check the on board memory of USB-6218 card?
Thanks
dwt
05-28-2013 11:36 AM
This error occurs when you are taking samples a a faster rate than you are reading them. Often this is because the developer used some thes than optimal code practices. Attach the problem code and we can point out opportunities to improve it.
05-28-2013 01:25 PM
Hi, Jeff:
thank for you reponse.
the attached is the LabVIEW code we are having problem. Because the original code include some data analysis and hardware control functions, those functions are removed at the attached code.
the 'AvailSampPerChan' is about 1500.
dwt
05-28-2013 02:24 PM
The only two things I would suggest are to change the timed loop mode to Discard- Ignore original phase to catch up a quick as possible when a loop finishes late. 32 channels can fill memory fairly quickly (1.365 seconds to be exact)
With Discard and Maintain original phase you push up to 3000 samples in the buffer and leave 1000 of them in the device take anothe 1500 pull 2000 (Leaving 500) if you finish late often enough you are garunteed to fail.
Not as to why you might finish late, what are you doing in the absent code with that 2000x32 2D array of DBLs? Hopefully you optomized those operations and read all about Large Data sets