08-17-2009 02:22 PM
I have a USB-6009 running on Labview State Machine controlling 2 analog outputs and reading 2 analog inputs. There is also a file write in AI read state. After 2-3 hours into cycling(AI Read/AO Read States), program pops up with a generic file I/O error(6). Seems like the system is running out of resources. At this point if I try to start any windows program it will say not enough resources. I have the pictures attached for state machine cases. I have a separate case for AI/AO Start Task(DAQ CONFIG). and a separate one for stop and clear(EXIT). I tried to start the task in AI read case but my loop time goes almost double. Out of this state machine I also have another while loop(watchdog) running at 100mS rate. Any ideas will be helpful. I am running this program on a dual core laptop.
Solved! Go to Solution.
08-18-2009 11:15 AM
lilo,
Thanks for posting on the NI Forums. It sounds like you are running out of memory on your laptop. I would recommending looking at your Task Manager and watch your Memory and see if you consistently use more and more as your program runs. Are you storing all of the data to an array as you sample it? This would cause your array to become very large and since your array is stored in memory I could see you running out of memory in this case.
08-18-2009 11:24 AM
You were right! It was a Anti Virus program (myagtsvc.exe) was eating up the memory. I killed it and life good. Thanks for your help!