[ACCEPTED]-How to get the data from a USB port in VB.NET-externalinterface
Here is what I found. You use the HID.dll to interface 3 the usb ports. And you know the best part? I 2 found some examples.
Here's a link that contains 1 basic examples and tutorial for usb interfacing. The HID Page
You loop those : IO.DriveInfo.GetDrives() and 3 check where DeviceType = IO.DriveType.Removable then 2 the device name to use it copying data or 1 other stuff
for details check this out : Detect USB drive
Abhilash (I only asked this question)
I am adding this, Just to let you people know, my current understanding about the topic...
I actually asked for the question 28 from one of my know person....
He explained 27 me this:-
There are basically two ways to 26 get data from an external instrument. The 25 fist method is to use the software than 24 came with the instrument. If the instrument 23 has an interface of any type, there should 22 be some software that reads the data. You 21 can use this software to store the data 20 to a file and your application will read 19 a file with s fixed structure. very simple.
If 18 the instrument provides a serial port but 17 no software, then you can use the My.Computer.Port 16 namespace to access the instrument's serial 15 port. It's easy to send commands to a serial 14 port and read back the response, but you 13 have to know the commands that the other 12 end recognizes. You will need detailed documentation 11 about the device, which you will most likely 10 find on the Internet.
The first approach 9 is always preferrable. Of course, you have 8 to associate the data with patients. This 7 can be tricky. If you can find the software 6 that allows you to download data from the 5 instrument to your computer, it will be 4 straightforward to acquire the data. Since 3 someone must connect the device to a computer, they 2 can also start the application and save 1 the data to a file.
More Related questions