LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Check USB Device Connected to a computer

Hi Guys

 

 

Is there any to check USB devices connected or not connected to a computer programmably. 

 

 

Tnanks 

 

 

0 Kudos
Message 1 of 3
(3,582 Views)
What sort of USB device? Keyboard, mouse, camera, USBTMC instrument, daq device, etc.?
0 Kudos
Message 2 of 3
(3,568 Views)

Okay you probably mean a USB thumb drive.  If this is the case run the List Folder function under File I/O >> Advanced.  Provide a blank path to the input and it will return the disk drives on your machine as an array.  You can then see if there is a E drive or whatever which is your drive you plugged in.  Or look for some files on the E drive that you expect to be there.  Or there are other functions for finding the lable, volume and serial number of the drive which can also be used to identify it.

 

But if you are talking about any USB device checkout DevCon.  Here are a few links

 

https://decibel.ni.com/content/docs/DOC-36009

https://decibel.ni.com/content/docs/DOC-5165

http://digital.ni.com/public.nsf/allkb/1D120A90884C25AF862573A700602459

Message 3 of 3
(3,549 Views)