C# example programs for accessing USB Devices

B

Bradley Grant

Does anyone out there know of where I could find some C#
example programs for accessing USB Devices. There just does
not seem to be much out there on this subject. Even after
doing a Google, Yahoo, Lycos search engines.

Any feed back would be appreciate.

Bradley
 
B

Bradley

That all looks good, thanks, the device I have works well
with the software that came with the device, but it's
limited, so I thought I might try to write my own software.
The driver came with the Device and a Visual basic program
and some Visual Basic 5.0 examples, so I don't have to
write the driver. Just trying to write a program in C#, as
I don't know much about Visual Basic. If you are interested
in the device I'm trying to write a program for, here is
the link. Thanks Again.

Bradley

http://www.bb-elec.com/product.asp?sku=UD128A8D&PathId=40&altsku=daqaichart
 
W

Willy Denoyette [MVP]

You can't access USB devices (or any other device) directly from user mode
applications in windows, this is done by the Device driver. The software
that came with the device includes a Device driver, a COM library and a VB
sample. The VB sample uses the interface exposed by the COM library, if you
want to build new (with extended functionality) applications using C#, you
have to import the typelibrary to access the same COM object from managed
code, However, if you meant that the functionality offered by the library is
rather limitted, you will have to call Device driver API directly from C++
or C#(using Pinvoke), but it's obvious you will need the API's
documentation.

Willy.


That all looks good, thanks, the device I have works well
with the software that came with the device, but it's
limited, so I thought I might try to write my own software.
The driver came with the Device and a Visual basic program
and some Visual Basic 5.0 examples, so I don't have to
write the driver. Just trying to write a program in C#, as
I don't know much about Visual Basic. If you are interested
in the device I'm trying to write a program for, here is
the link. Thanks Again.

Bradley

http://www.bb-elec.com/product.asp?sku=UD128A8D&PathId=40&altsku=daqaichart
 
B

Bradley

Thanks for your information, all I want to do is get the
values from the USB device, and then create a program with
more options. The program that came with this device takes
the values in and displays them, but does not allow you to
compare incoming values to a set point and then calculate
and output to one of the Analog Outputs for automatic
control. The included software only allows you to manually
set the output values with the software. I also look at the
possibility of third party software that had more options,
but the manufacturer was unaware of any, so I guess I am on
my own here.

Thanks again for your information, I really appreciate it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top