LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

usb 6009 freeze

Solved!
Go to solution

Hi all,

 

When using the USB 6009 interface for reading out two sensors (temperature and pressure, using the Voltage they generate) and sending signals to valves, my program keeps working.

But after a while the USB module crashes.

Most of the time both input and output don't seem to work anymore. I don't get any error, it just doesn't work anymore. When I pull out the USB device and insert it again in the USB port, it works again perfectly

FYI (It happened once or twice that the outputs still worked, but I got no input from the devices.)

 

Does anyone have similar problems or knows how to fix this?

 

Thank you in advance.

 

Regards,

 

Bart

0 Kudos
Message 1 of 15
(3,231 Views)

Could your PC be disabling the USB port in order to save power?

0 Kudos
Message 2 of 15
(3,221 Views)

Could you post your code?

0 Kudos
Message 3 of 15
(3,216 Views)
All the power safe options are already off, but thank you for the tip.
0 Kudos
Message 4 of 15
(3,183 Views)

Here is the code.

0 Kudos
Message 5 of 15
(3,175 Views)

That code is very hard to read. Look into clusters and SubVIs to help clean up that VERY large code.

 

Since I do not have DAQ installed, I can't be of much help other that what I mentioned above.

0 Kudos
Message 6 of 15
(3,165 Views)

Why don't you run Max in the test mode against your USB 6009 and find out if the problem is occurring. If it does, you might have a configuration issue with your computer or hardware problems. Also if you are running Windows xp, make sure your usb patch is installed.

0 Kudos
Message 7 of 15
(3,150 Views)
I'm working with Windows 7, so this can't be the problem as far as I am aware. I don't really think it is a configuration problem, because sometimes it works perfectly for a while but then suddenly without any change it will freeze...
0 Kudos
Message 8 of 15
(3,137 Views)
Solution
Accepted by topic author Bart_Aerts

The try running Max for awhile. This will indicate if there is systemic problem or not. Another issue is if you use a USB hub. Sometimes they hang up and cause the issue. NI Seems to prefer direct computer connections and not through hubs.

Message 9 of 15
(3,128 Views)

I'm using a hub at the moment, so this can be the problem. I'll try to find a solution where I don't need this hub.

 

Thank you for this hint.

0 Kudos
Message 10 of 15
(3,124 Views)