LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

examples using computers USB port

I need to create a labview 8.2 program that can look at the computer's USB port and transfer files from the USB stick onto the computers hard-drive. I don't know how to access and move the contents of the USB stick using Labview. Are there any examples I can download of this?
0 Kudos
Message 1 of 5
(3,275 Views)
Since USB keys usually show up as drive letters  (for example G:\) , wouldn't the standard copy move file VI's work by transferring from C:\ to G:\ or G:\ to C:\?
0 Kudos
Message 2 of 5
(3,264 Views)
Your right, it does. I've just finished proving that out. Only problem is I can't guarantee that the USB will always come up on the same driver letter? I think USB drive letters are not fixed but are rather assigned on an availability basis. But I don't think that problem will be insurmountable. That's where I'm at right now.
0 Kudos
Message 3 of 5
(3,260 Views)
I find that my USB key is pretty consistent in what drive letter it gets mapped to.  My regular key always seems to show up as G:\ at home. but as I:\ at work because there is a network drive mapped to G:\.  A different brand of key I just plugged in at home showed up as F:\.
 
I don't recall the last time a given key showed up as a different letter than usual, but I'm sure it has happened before.
 
I think your best bet may be to use a file path control that would let you browse to and select whatever drives show up on the system.
 
Message 4 of 5
(3,255 Views)
There may be more upto date functions but ...

Check out the following post for a host of Windows related drive functions that should help nicely.

http://forums.ni.com/ni/board/message?board.id=170&message.id=9802&requireLogin=False

Specfically volume label and drive types.
Message 5 of 5
(3,247 Views)