10-17-2008 03:47 PM
Andrew,
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.
Lynn
10-23-2008 09:31 AM
10-24-2008 09:02 AM
09-02-2010 04:23 PM
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.
Best Regards,
Ro
09-03-2010 06:43 AM
@Malhar wrote:
Hi Andrew, Find the attached content.. It is used to remove any hardware from your compuer.... I hope you'll enjoy lot..
Regards :
Malhar
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.
11-05-2016 12:45 PM - edited 11-05-2016 12:46 PM
Shane, where did you find this terms about distributing DevCon? Could you provide the source?
11-05-2016 04:51 PM
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.
11-06-2016 06:39 AM
Even if it is an old post it doesn't necessarily mean that he cannot reply to it 😉
11-07-2016 08:53 AM - edited 11-07-2016 08:56 AM
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:
http://forums.ni.com/t5/LabVIEW/disable-wireless-card/m-p/3297564#M964373
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.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
02-08-2017 04:31 PM
Hi
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?