02-14-2018 12:18 AM
I'm developing a "continuous monitor" based on a IC-3120 Controller and a NI 9147 cRIO Expansion Chassis. The controller manages aqcuisition of data from the expansion chassis FPGA by FIFOs. There seems to be no problems with the about 400kS/s aggregate sampling from the expansion chassis, or the analysis of it. It stabilizes on about 16% RAM usage.
But the system routinely crashes after about 9000 seconds of use (2,5 ish hours). The crash is normally preceeded by an "error code 11" in my error log, and usually pops up in a state of my file IO module which writes timer and counter data to an ini file (operation time, number of different events etc.). The ini file is updated by a subVI that receives a path, then opens the file, writes to an arbitrary number of keys in a for loop with shift registers, and closes the file after the for loop has finished.
I notice that some of my searches imply that error code 11 could also be related to TCP connections. I do not use any myself, but am unsure of what the controller does "natively" to control the expansion chassis?
Has anyone else encountered this problem and solved it?
02-14-2018 11:47 AM
Error Code 11 seems to be "Too many files open". Look at your Block Diagram, see where you open/close files, try to see if you are "opening without closing". The fact that it runs a few hours and crashes suggests you may be "gradually consuming memory" ...
Now, if you had attached the code (as a VI, since it is tedious, and causes eye strain, to view a picture that may or may not "show everything), we might have been able to spot the error ...
Bob Schor
02-19-2018 02:59 AM