ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

USB Enumeration

Solved!
Go to solution
How do I detect USB enumeration in LabVIEW? I want to detect when a USB device has been plugged in.
0 Kudos
Message 1 of 12
(9,335 Views)

check this

 

Guru

Regards
Guru (CLA)
0 Kudos
Message 2 of 12
(9,330 Views)

Guruthilak wrote:

check this


Dear Guru,

 

The link you attached is showing some exception error. HTTP Web Server: Lotus Notes Exception - Entry not found in index.

 

I hope devcon will do what you want. Search the forum and you will get lot more information. Post back for any kinda queries.

0 Kudos
Message 3 of 12
(9,319 Views)

Thanks mathan..

Couple of extra charaters got added to the hyperlink.. See this

 

Guru

Regards
Guru (CLA)
Message 4 of 12
(9,311 Views)
If you're on Windows you can also use the Windows Message Queue Library.
0 Kudos
Message 5 of 12
(9,256 Views)

Thanks. The devcon utility will work, but it pops up a command prompt window, which is undesirable. The Window message queue library seems a bit complicated.  Actually I want to detect a USB device which enumerates as a COM port. I believe the VISA Find Resource function might work for me.

 

Anything wrong this this...?

 

FindVisaResources.jpg

0 Kudos
Message 6 of 12
(9,225 Views)
When I tried to used this same system the output (find list) gave me the reading "ASRL3::INSTR" I believe this means COM3. Did you have the same outcome? Also, if you open up MAX (Measurement & Automation), you can communicate with your device using VISA interface.
Message Edited by ADrexelDragon on 04-12-2010 02:35 PM
CLD Certified 2014
0 Kudos
Message 7 of 12
(9,207 Views)

Yes, for the find list I get an array of serial and parallel ports available on my PC.

find list.jpg

Message 8 of 12
(9,195 Views)
It looks like you found out which USB port each input is.
CLD Certified 2014
0 Kudos
Message 9 of 12
(9,152 Views)
Solution
Accepted by topic author Sidd

Sidd,

 

off the bottom of the command window vi is a boolean to run the window minimized.

 

 

 

Tay

0 Kudos
Message 10 of 12
(9,139 Views)