NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
sathish.deena@hcl.in
Posts: 13
0 Kudos

Access device manager through labview

Hai All,
 
I want to build application to identify the USB devices connected to the PC.  I used to achieve this by using devmgr.dll, but i could not succeed.
So if any one knows how to do this means, please share it.
 
Thanks in Advance.
Knight of NI
Posts: 18,064
0 Kudos

Re: Access device manager through labview

Did you try the registry listing as I suggested in your original post?
Member
sathish.deena@hcl.in
Posts: 13
0 Kudos

Re: Access device manager through labview

Thanks for your prompt response.

yes, off course!! But I could not find the device which i have connected with the PC.  Thats why i tried to access the same through device manager.  Please help me if you have any soloution.

Knight of NI
Posts: 18,064
0 Kudos

Re: Access device manager through labview

In the future, please stick to the original post because you're not asking anything new, and it benefits others to see the history.

What have you tried so far, and what exactly "doesn't work"?
Knight of NI
Posts: 18,064

Re: Access device manager through labview

Rather than messing around with that DLL, I would suggest using devcon instead. You can call it using System Exec.
Member
sathish.deena@hcl.in
Posts: 13
0 Kudos

Re: Access device manager through labview

O..Sure.  First i tired to get the required information through the Reistry key as you suggest.  But under the USB tree, i found more that 20 sub trees and no one of it hold the information about the USB device (Code warrior) which i have connected. After that I tried to access through devmgr.dll, and tried its different functions to get the required info.  But i am not sure which function i have to use to fetch the information. 
Knight of NI
Posts: 18,064

Re: Access device manager through labview

I think devcon is going to be easier for you to use. Try it. For example, the command "devcon find usb\*" lists the USB devices. The command "devcon find *" lists ALL devices.
Active Participant
lmtis
Posts: 509

Re: Access device manager through labview

smercurio,
yet again you add another tool to my toolbox.  I think I am going to have to get a bigger one! :smileywink:
Thank you Sir!
Jim

LV 8.6.1f1, 2011
Knight of NI
Posts: 18,064

Re: Access device manager through labview

Can't take full credit for knowing about that utility. In this thread I suggested using that utility, and I indicated in that thread the original thread where I found out about that utility.
Member
sathish.deena@hcl.in
Posts: 13
0 Kudos

Re: Access device manager through labview

Thank you Sir.
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page