Why not actually disconnect the device? Have your test engineering people make a special USB cable with a relay which disconnects the power conductors when you need to do a reset. Maybe disconnect all wires. This should act like an unplug-plug cycle. You could control the relay from LabVIEW of course. Then you only rely on the OS to detect the reconnection, not to perform it. You would probably need to experiment with the timing or look up the USB specification to determine how long to leave it disconnected.
I have not tried this, so I cannot say that it would definitely work.
Are you guys still around?
I'm trying to do the same, I want to reset the usb port.
Mlahar's vis have som evis missing and are password protected as somebody else also pointed out so if he can provide the complete set with password, we wpuld appreciate much.
Hi Andrew, Find the attached content.. It is used to remove any hardware from your compuer.... I hope you'll enjoy lot..
Your solution is good, but are you aware that redistributing the Microsoft tool "Devcon" is violating Micrisift's licensing terms? It is forbidden to redistribute Devcon.
Why I don't know. I would love to be aboe to simply pop devcon with every piece of USB software I use but it's actually not allowed. You're supposed to download it from source every time you install...... which is stupid.
Shane, where did you find this terms about distributing DevCon? Could you provide the source?
Shane's material is at least 6 years old. Call MS. This is not a LabVIEW problem. And, please don't hesitate to post your own threads.
Even if it is an old post it doesn't necessarily mean that he cannot reply to it 😉
Yeah DevCon is probably the way to go. I've had good success with flaky wireless cards that wouldn't stay connected, and disabling then reenabling them was helpful. I posted that code here:
But if you are looking to remove a device I think the code is probably something like this, however I got errors on trying to remove my CD/DVD drive so I might be doing something wrong.
I also couldn't find anything definitive on the distribution licenses, but I'd still assume that there is a license somewhere, stating you aren't allowed to distribute it as a stand alone binary.
The file you attach is pretty good. However, I cannot use becuase I do not have some blocks that are included. I cannot open block diagram. Would you provide the password? or a new file?