[Mono-list] gpib + mono

gnuplot post gnuplot.mail at gmail.com
Fri Jul 14 12:25:51 EDT 2006


On 7/14/06, Jonathan Pryor <jonpryor at vt.edu> wrote:

>
> How do you talk to the GPIB instruments in C, etc.?  Do you need to open
> a /dev device and talk some binary protocol?

   no

> Or is there a define C API that you need to use?

 yes

> Use a serial port?

no

> If a /dev device, you can probably create a System.IO.FileStream
> instance for the specified file, and read/write the binary data as
> appropriate.

see above

> If a C API, you can use DllImport declarations to import the C API into
> C#; see http://www.mono-project.com/dllimport.

yes  I will check the document... thanks...

> If a serial port is used, use `gmcs' to compile (to target the .NET 2.0
> runtime) and use the System.IO.Ports.SerialPort type.

no   see above

In any case  thanks for the prompt reply

Igor


More information about the Mono-list mailing list