[erlang-questions] Erlang for a measurement system?
Pablo Platt
pablo.platt@REDACTED
Mon Nov 24 22:47:39 CET 2008
That's exactly what I'm trying to do.
I've found linux-gpib but it seems that all the logic is in the c files
http://linux-gpib.sourceforge.net/
and I'm not sure I can take advantage of erlang goodies.
I'll appreciate if anyone could give me a simple c interface for VISA/GPIB
and a corresponding erlang code or any advice.
Thanks
________________________________
From: Matthias Lang <matthias@REDACTED>
To: Pablo Platt <pablo.platt@REDACTED>
Cc: erlang-questions@REDACTED
Sent: Monday, November 24, 2008 11:30:24 PM
Subject: Re: [erlang-questions] Erlang for a measurement system?
On Monday, November 24, Pablo Platt wrote:
> Is it possible to communicate directly with hardware without using c code?
No.
> I understand that on linux hardware is a file so is it possible to
> talk with the hardware with io erlang functions?
Some, but far from all, hardware on linux is a file. Even the ones that
are, e.g. serial ports, can't be controlled directly from Erlang because
Erlang won't let you open non-regular files. And for other reasons.
Most of the Erlang code I write controls proprietary hardware. It always
does that through C code. The trick is to keep the C code simple and
put the complexity up in Erlang.
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081124/a77c86cc/attachment.htm>
More information about the erlang-questions
mailing list