Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

USB-6009/ Labview

Solved!
Go to solution

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.

 

 

AI Read.JPG

Download All
0 Kudos
Message 1 of 3
(3,201 Views)

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.

Aaron W.
National Instruments
CLA, CTA and CPI
Message 2 of 3
(3,171 Views)
Solution
Accepted by lilocomotiv

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!

0 Kudos
Message 3 of 3
(3,168 Views)