[Haskell-cafe] Help Haskell driving Medical Instruments
Philippos Apolinarius
phi500ac at yahoo.ca
Tue Nov 10 08:01:33 EST 2009
Hi, Jason.
I don't know how to mark the call unsafe. And I don't know what is a *Nix (perhaps unix?). I am running the main program on Windows. Here is the compilation script:
ghc -fglasgow-exts serial.c %1.hs -L./ -ljapi --make
erase *.hi
erase *.o
strip %1.exe
BTW I figure out that passing an argument to closecport only makes the problem occur less often. Here is an example:
D:\ghc\sensors>strip temper.exe
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
4
D:\ghc\sensors>temper.exe
unable to set comport cfg settings
4
--- On Mon, 11/9/09, Jason Dusek <jason.dusek at gmail.com> wrote:
From: Jason Dusek <jason.dusek at gmail.com>
Subject: Re: [Haskell-cafe] Help Haskell driving Medical Instruments
To: "Philippos Apolinarius" <phi500ac at yahoo.ca>
Cc: "Haskell Cafe" <haskell-cafe at haskell.org>
Received: Monday, November 9, 2009, 11:41 PM
Does marking the call `unsafe` make any difference?
This is running on a *NIX of some flavour?
--
Jason Dusek
__________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr!
http://www.flickr.com/gift/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20091110/d0a54a25/attachment.html
More information about the Haskell-Cafe
mailing list