Jump to content

Reinstall device in Windows


_Y_

Recommended Posts

We use USB-connected Microsoft Smart Card Reader. The devise crashes sometimes. It does not happen often thus search for the reason could take time.

The only way to get the devise functioning again, is to open Device Manager, click Uninstall then Scan for hardware changes (that installs the Reader again).

Is there any method to do this from LabVIEW? I.e. send commands to reinstall the USB device?

I know this could be a bad fix. However, it can help in long-time tests (while we are searching for reason of these crushes).

Thank you

Link to comment

Years ago I had a similar problem, and I think I temporarily resolved it by disabling/reenabling the device, which is not exactly the same as reinstalling as you ask, though. Here are some links I perused at the time (the last dead now), which involve a command called devcon, which worked for XP. Maybe it helps...

http://en.kioskea.net/faq/1886-enable-disable-a-device-from-the-command-line
http://www.rarst.net/script/devcon/
http://www.wlanbook.com/enable-disable-wireless-card-command-line/
http://www.osronline.com/ddkx/ddtools/devcon_86er.htm

Otherwise I can just generically recommend to make your usb connection as robust as you can, to improve reliability. Watch out for flimsy cables, and EMI.

Link to comment

Yeah Devcon is the way I did it for a wireless card that would have connection issues when offsite:

http://forums.ni.com/t5/LabVIEW/disable-wireless-card/m-p/3297564#M964373

If it couldn't ping google I first disconnected and reconnected to the network.  Then if that didn't work I would disable and reenable the card.  We were uploading remote data to an FTP from a DSL connection at the testing facility and it needed to continually try to put data out there so we could evaluate it from the office.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.