I am building at least a prototype of an instrument which reports
it's data collection via e-mail using REBOL. Currently it runs on
QNX4, but probably will run on QNX RTP/Nto.

I have several instruments which are connecteded via serial ports
as well as a LCD/keypad display. I have writing to the display working
and can read characters from the keypad, but am having trouble building
a loop around a wait statement.

I open the lcd with the following:

   lcd-fp: open/mode %/dev/ser1 [ direct write read binary ]

writing works as expected using insert. To read chars I use:

   char: first lcd-fp

but doing a: wait [lcd-fp]

I get:

>> wait [lcd-fp]
** Script Error: Invalid argument: ?port?.
** Where: wait [lcd-fp]
>> type? lcd-fp
== port!
>>

I was hoping that this would work the same as a tcp/ip port since I'm
going to need to do the same kind of thing to read the instruments.

It looks like REBOL is thinking that something opend using file (%)
semantics is not fit for an fd in a C: select() call.

Do I have any choice here besides writing C RS-232 <-> tcp/ip
interfaces to the divices and REBOL?

Also is there any facility to shell off external scripts from REBOL/CORE?

Thanks,

Dave Hawley

--
David L. Hawley       D.L. Hawley and Associates    1.503.274.2242
Software Engineer                      [EMAIL PROTECTED]

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to