LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

6525 get stuck

Hi all

I can't upload the code so i will try to describe as best as I can.

I have two loops in parallel, the main loop is event in while that respond to button pressing and writing to the output, the second loop is reading the inputs from the device through sequence loop inside while loop with 100 ms wait until next ms multiple.

The code is stable but after some time (today it was 2.5 hours) the program stop responding and it feels like the usb 6525 device is stuck, even if crashes labview and go into ni max the device doesn't respond to self test.

Im pretty confident about the error handling and the create task one time before the while loops and close at exit.

The problem solve only after pc restart at the moment.

Please i need help to make the system reliable and steady.

Thanks

0 Kudos
Message 1 of 5
(147 Views)

Without seeing code it's impossible to know for sure, but what you're describing sounds most like some sort of memory or reference leak.  As in, you're creating an event, event registration, DAQ task, or something else on each loop but not closing it, and after a while the system can't handle any more.

 

The other thing that comes to mind is that your USB setup could be having issues.  You may want to go through your USB devices in "Device Manager" and check their settings one by one to see if you can disable power management for them, as well as turning off "USB selective suspend" in the general advanced power management for your entire PC.  Also, if you're connecting the 6525 through a hub, try either a different hub or bypassing the hub altogether.  If you're connecting it to a port on your PC, try a few different ports if you have options.  Also just updating the chipset drivers for your motherboard could help too.

0 Kudos
Message 2 of 5
(117 Views)

@Shayo wrote:

Hi all

I can't upload the code so i will try to describe as best as I can.

I have two loops in parallel, the main loop is event in while that respond to button pressing and writing to the output, the second loop is reading the inputs from the device through sequence loop inside while loop with 100 ms wait until next ms multiple.


I don't understand why you "can't upload the code" -- it is very difficult (even for very experienced LabVIEW users) to "guess" what is going on from your description.  Surely you can "capture" the "two loops in parallel" (perhaps changing some variable names to hide company secrets, or changing the names of the inputs and outputs).

 

Is your first loop an Event structure inside a While Loop?  Does it do anything other than respond (how?) to a Button press?  How is the "event" conveyed to the second loop?

 

And what is the second loop?  I'm not familiar with the 6525, which seems to be an 8-channel industrial digital I/O USB device.  What are you trying to do with it?  Are you taking 1 reading from N channels?  M readings from N channels?  What (other than the single Wait Next ms Multiple time function) controls the frequency of reading, both "across" the channels (i.e. 1 sample from N channels) and whether single read/loop or multiple reads (from N channels) per loop?  When/how do you output or save the data?  Am I correct that the data format from the 6525 is a Boolean number or an Array of Booleans?  Can you see how a Block Diagram is really necessary for us to see?

 

Bob Schor

0 Kudos
Message 3 of 5
(104 Views)

Sorry that i can post the code, of course i understand it is difficult to help without seeing the code, i thought that by describing it can remind some one similar issues and the fix to the problem, 

I will try to recreate the code and post it.

Thanks.

0 Kudos
Message 4 of 5
(93 Views)

@Shayo wrote:

...through sequence loop inside while loop with 100 ms wait until next ms multiple.

I don't even know what a "sequence loop inside a while loop"  is. (well, I can guess but might be wrong...)

How is memory use over time?

0 Kudos
Message 5 of 5
(82 Views)