LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

At90usbkey detach and attach via software ?

Hi all. I have a AT90USBKEY which i have programed as a virtual com port. The problem i am having is that randomly while i am sending information serially, the connection either freezes or is lost and my program cannot pickup that port.

The only why to get it working again is to disconnect the usb and reconnect it.

I am using the VISA Library to check for all ports.

 

To ask the user to disconnect and reconnect the usb device is a no go for me.

Is there a way i can disconnect and reconnect the usb device via software ?

Help share your knowlegde
0 Kudos
Message 1 of 3
(3,318 Views)
Or a way to disable the port/device and then enable it as you would do in the device manager ?
Help share your knowlegde
0 Kudos
Message 2 of 3
(3,315 Views)
You can manually go into the Device Manager, and uninstall.install the driver for the USB card. I am not sure if you can do this programmatically, but there are a bunch of hits on google for "programmatically ejecting USB device". You can also look at the NI USB-232 device and avoid this headache altogether 😉
---

Peter Flores
Applications Engineer
0 Kudos
Message 3 of 3
(3,271 Views)