views:

18

answers:

1

sample code of reading data from usb port in C#.net by windriver API

A: 

Assuming that by windriver API you mean the WinDriver product by Jungo. If you go to this page Sample Code (WinDriver) it says that there should be C# samples installed when you install the toolkit itself.
I've never used WinDriver myself but I'd suggest you go searching through the installed files and see what you find.

Otherwise, if you're just looking for generic C# code to communicate with a USB device and assuming it's a HID, you can find an article on codeproject that should be helpful: A USB HID Component for C#

ho1