08-17-2012 07:37 AM
Tried that, still locks my machines up.
08-17-2012 07:47 AM
What's really odd, is that sometimes I can get it to work, other times not.
08-17-2012 10:18 AM
I'm am going to be out of the office for a week or so, but here are some ideas:
Try adding a sequential wait to the code to see if it just needs to be slowed down for some reason. For that matter, try just running in single step mode and see if it work in slow motion.
Try running NI Trace and see if you can monitor the USB output...not sure if that will work with the DLL though.
Find another USB sniffer app. I have a link to one at work, but can't remember what it is now.
From the Device Manager, try uninstalling your USB drivers/devices, then re-installing them.
Contact NI support and see if they can help.
08-17-2012 10:56 AM
Tried all those, even in contact with FTDI, nobody seems to know what's happening.
08-17-2012 11:06 AM
It's been a while since I started this thread, but I would still love to see an answer for it.
Basically, every once in a while, with almost ANY USB device, I find myself having to pop the plug in and out of the port to reset it. We're talking drive enclosures, cDAQ devices, FTDI, my cell phones, etc.
I have searched and searched and though many drivers have a RESET command, I have not found the equivalent of telling the USB hub to reset the connection. Sure, there are lots of ways to look at your own specific application and try to prevent this from happening, but sooner or later I end up popping up a dialog that says "pull it then plug it, please". On a couple testing systems we even went so far as to put relays on the USB lines.
08-17-2012 11:27 AM
Jed,
According to this discussion on StackOverflow, you may be able to use the DevCon command-line utility to remove and rescan.
Beyond that, there seem to be many replies stating that this is simply not possible due to how USB devices behave at the electronic level. Particularly of note is the following comment: "The usb host (the pc) can send a message to the device to tell it to shut down, but once it's done that it's up to the device to start back up again. The host can't force it to."
08-17-2012 11:44 AM
Jared,
Can you get devcon to work on Win7? I can't get it to return the list of USB devices by using listclass usb. It worked in XP. If you can get it working, please post an example because this would save lots of headaches.