LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Windows/Labview/USB-6009 Problem

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.

WatchDOG.JPG

Download All
0 Kudos
Message 1 of 4
(2,868 Views)
could you attach the actual VI instead of some partial images? You are using lcoal variables and that's never a good sign.
Message 2 of 4
(2,817 Views)
I will wait on an actual vi. I noticed my laptop was locking up without labview running too. Found a Mcafee service(myagtsvc.exe) growing and growing. I shut it down and started the program again. Maybe this will fix my problem. Will keep you guys posted. Thanks for your help though.
0 Kudos
Message 3 of 4
(2,801 Views)
Solution
Accepted by topic author lilocomotiv
It was the Antivirus program eating up the memory. Killed it and life is good. Thanks for your help.
0 Kudos
Message 4 of 4
(2,772 Views)