LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB 2 detection

Solved!
Go to solution

Hi.

   I have a USB device plugged into my PC. It appears like a Serial port in Labview. The thing is, this is a USB2 device. If plugged into a USB1 port it will not work correctly. Is there any way that I can tell what kind of port this device is plugged into?

Cheers, Alec

0 Kudos
Message 1 of 7
(3,725 Views)

Hi,

 

the problem seems to be the COM port number should be changed to adapte to your program.

See how to change the Port number in Windows:http://support.microsoft.com/kb/232673

0 Kudos
Message 2 of 7
(3,714 Views)

Hi, no the com port number is not the problem. The USB Device assigns it's self a com port number, lets say "COM7" and thats just fine. I can use the device through labview using the pre-assigned "Com7".

 

The issue is, if the port hardware is USB1, then the device will only occasionally communicate correctly.

If the port is of USB2 standard, then the dive will always commincate correctly.

 

I would like a method of being able to obtain information about a COM port. can I interegate what labview thinks COM7 actually is. will something give me a list of port or driver information? I could probably extract the information that way, to stop the user trying to use the device on a USB1 port.

 

Many thanks, Alec

0 Kudos
Message 3 of 7
(3,709 Views)
Solution
Accepted by topic author alecjcook

At the application layer you won't have that information. As far as LabVIEW is concerned, it sees a serial port. It has no knowledge of how it got there. I suspect the information you're looking for could be garnered from devcon, which you can call from System Exec and then parse out the result.

Message 4 of 7
(3,695 Views)

Do you know of anything similar that is re-distributable?

Many thanks, Alec

0 Kudos
Message 5 of 7
(3,658 Views)

You could try USBDeview. It has command-line options to save to file.

Message 6 of 7
(3,640 Views)

Thats really good, but it doesn't QUITE tell me what I need to know. This will tell me what USB port the unit is plugged into, but it will not tell me if that port is a USB2 port or not. I guess I need some kind of hardware profiler? 

Again, Many thanks, Alec

0 Kudos
Message 7 of 7
(3,629 Views)