LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use LabVIEW to refresh the USB port?

In my LabVIEW program I am using USB to communicate with some equipment. The USB connection might be a little unstable. Sometimes the LabVIEW program gets stoked and there is nothing I can do to make it running again. Only I can pull out the USB cable from the PC and then put it back in. Then LabVIEW is running again. How can I make this programmable / automatically?
0 Kudos
Message 1 of 6
(5,719 Views)

Can you post your code? One way of handling it  checking for error and once you get any error then exit the while loop.

 

 

Message Edited by muks on 08-18-2008 06:09 AM
0 Kudos
Message 2 of 6
(5,688 Views)
Here is a simple block diagram.
0 Kudos
Message 3 of 6
(5,675 Views)
So you are not using any loop?
0 Kudos
Message 4 of 6
(5,647 Views)
Have you considered Microsoft's 'devcon' command-line utility? You might be able to use it to refresh your devices. Try here: http://support.microsoft.com/kb/311272/EN-US/
0 Kudos
Message 5 of 6
(5,633 Views)

Now I have tryed using a loop in LabVIEW, but it did not work.

 

Also I have tryed to use DevCon, but this did not work either. Not without rebooting the PC. See attached file.

 

Any other idea?

 

0 Kudos
Message 6 of 6
(5,589 Views)