LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with using devcon for disabling USB port

Hi,

Like several others, I am trying to use devcon to disable and re-enable a USB port from within LabVIEW. The USB port is connected to a USB camera listed in the device manager as "Thorlabs DCC cmos, 1280x1024, ers, 1/3 cameras". I reviewed the numerous posts related to devcon, but did not find anything that helps me with the issue I am having. I am using Win 7 64 bit.

 

I downloaded devcon as part of the Windows Driver Kit (WDK) 7.1.0 following the instructions on http://9b5.org/2011/10/getting-devcon-exe-onto-and-working-with-windows-7/.

I then followed the instructions in the thread http://digital.ni.com/public.nsf/allkb/1D120A90884C25AF862573A700602459. (Note that both USB Root Hubs listed in device manager have a Device Instance Path of ROOT_HUB20.)

 

Command prompt:

When I try running devcon remove *ROOT_HUB20*, I get a Remove failed message.

When scanning for new hardware, devcon fails.

 

LabVIEW vi: Same result

 

Your help is appreciated. Thanks.

 

0 Kudos
Message 1 of 5
(5,461 Views)

First you need to be able to use this command in windows, then you can try in LabVIEW.

Check in this forum the first answer: devcon win7 

You could try to follow those steps.

 

Regards

0 Kudos
Message 2 of 5
(5,423 Views)

Hello fromm8,

 

I studied this thread already before I submitted this support request. In fact, I got the instructions for installing devcon from this thread. But there is nothing in there that helps me with my issue. I went through it again just now, but with the same result.

 

Peter

0 Kudos
Message 3 of 5
(5,410 Views)

You should look some Microsoft forums. Aparently there are some issues with this command for windows 7 64 bits but there are different workarounds. For example this one: devcon problem

 

regards

0 Kudos
Message 4 of 5
(5,391 Views)

Thank you for your efforts to help me. Unfortunately, we are going in the circle, since this post is just a copy of the earlier posts. I have already downloaded and installed devcon following these instructions, but now it does not work properly. There is nothing in that post that would guide me in the right direction from here.

0 Kudos
Message 5 of 5
(5,381 Views)