plz help me,i want to send/receive data to one hardware device that is conneted with GPIB cable , how can i send data to that device in C#.net
-
hi, i want to send/receive some commands to one hardware device through GPIB card(one end is connected to System(USB port) one end is connected to device) in c#.net . i wnat to know in which way i can communicate the device and what r requried fields to access the hardware through GPIB card. plz send sample code for that . it's very usefull to in my application. Thanks prem
Hi, Thanks, if u think it's good. otherwise sorry.
-
hi, i want to send/receive some commands to one hardware device through GPIB card(one end is connected to System(USB port) one end is connected to device) in c#.net . i wnat to know in which way i can communicate the device and what r requried fields to access the hardware through GPIB card. plz send sample code for that . it's very usefull to in my application. Thanks prem
Hi, Thanks, if u think it's good. otherwise sorry.
Hello To access any port -Serial, LPT, USB, etc...- or device -eg. modem- in C3 you follow these steps: 1- Call Windows API CreateFile() function with the device name as the filename. ie. CreateFile("usb0001") for example. 2- Get The handle of the created file. 3- Supply that handle to the constructor of a FileStream object. 4- Use that FileStream object to read and write from/to the port/device. And no, you can't construct a FileStream from the port directly. Sorry!
Regards:rose: