Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

NI USB-6009 gives -50405 error in MAX when I Reset Device

I have four NI USB-6009 modules on a 7-port externally powered USB hub. Sometimes when I start MAX, I can't reset some the modules - I get an error -50405 on at least one of them. Sometimes when I successfully reset one of them, I can try resetting it again a few seconds later and I'll get the error. Sometimes this failure cause a BSOD when I dismiss the dialog box. Once I get the error the device won't recover on its own.

 

The closest thing to a solution I've found is to disconnect the USB hub from the computer so the devices become "ghosts" in MAX. Then I delete the devices, cycle power on the hub, and plug the hub back into the computer. This sometimes works, but only temporarily.

 

My system:

Windows 7 x64 SP1
LabVIEW 2012
MAX 5.3.1f0
NI-DAQmx 9.5.5f4

There is also a USB-8473 CAN interface on the hub, but I'm not having any problem with it.

 

I am not an administrator for this machine, and am blocked from accessing RegEdit or the device manager, so I can't check registry keys or power settings.

 

I'm seen similar issues posted, but they don't distill the problem to something reproducible strictly within MAX and thus may be something peculiar within the VI accessing the USB-6009 modules.

0 Kudos
Message 1 of 7
(3,860 Views)

I had a similar issue, with the USB6009 throwing a 50405 error on a reset in MAX. Simply moving from a 3.0 host controler to the 3400 series chip set port solved it for me. Both are internal to my laptop (Dell EliteBook 8540w)

 

Using:

NiDAQ9.6.1

Window 7 x64 SP1

 

 USB Hubs

 

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 2 of 7
(3,856 Views)

Some of the PC’s USB ports have an Intel ICH9 Family USB Universal Host Controller, and some have an Intel ICH9 Family USB2 Enhanced Host Controller.

 

I have to use the USB2 controller port, because the 7-port external hub I'm using is arranged internally as a 4-port hub with one of the ports feeding a second 4-port hub, and if I plug it into a regular USB controller port on the PC the second hub and its ports don't show up.

0 Kudos
Message 3 of 7
(3,845 Views)

I just tried each USB-6009 individually, going straight into the the PC's USB port, bypassing the external USB hub. They all work that way. I'm going to try another hub.

0 Kudos
Message 4 of 7
(3,842 Views)

I didn't find another hub, but I removed the code to reset the USB-6009's from my application. All the other USB-6009 functions seem to work, both in my application and in MAX. I would still like to be able to reset the devices, but for now I'm back in business as long as they don't malfunction.

0 Kudos
Message 5 of 7
(3,840 Views)

You could see if you are able to reset the devices through LabVIEW.  Check out the community example here.

 

https://decibel.ni.com/content/docs/DOC-20268

https://decibel.ni.com/content/docs/DOC-9846

 

 

Regards,

M. Whitaker
ni.com/support
0 Kudos
Message 6 of 7
(3,822 Views)

This whole thing started because I couldn't reset the devices using my LabVIEW application. Your example

https://decibel.ni.com/content/docs/DOC-9846 is similar to what I was doing. I was using "DAQmx Reset Device.vi". It would randomly return an error code. Once a device returned an error code on the reset, reads and writes using that device would no longer work.

 

I figured maybe it was something I was doing wrong, which is why I tried MAX.

0 Kudos
Message 7 of 7
(3,817 Views)