Re: Using the serial port of a SunSparc station to the data in real time [message #6788] |
Tue, 13 August 1996 00:00 |
pit
Messages: 92 Registered: January 1996
|
Member |
|
|
In article <4umqme$kn8@kwuz.nerc-keyworth.ac.uk>,
orka@unixa.nerc-keyworth.ac.uk (Nigel Rees) writes:
> Does anybody know if it is possible to access the serial port of a
> SunSparc station(ttya), directly from IDL. This is currently
> achieved using C called from IDL, and this is having portability
> problems. Any help gratefully recieved.
> Thankyou
> Nigel.
I once did it for controlling a video recorder and an optical disc
recorder (Sparc 10, SunOS 4.1.3). It was as easy as to do an
openu,1,'/dev/ttya'
writeu,1,data
Have you already tried this?
Peter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
Peter "Pit" Suetterlin http://www.uni-sw.gwdg.de/~pit
Universitaets-Sternwarte Goettingen
Tel.: +49 551 39-5048 pit@uni-sw.gwdg.de
-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * -- * ...-- * --
Come and see the stars! http://www.kis.uni-freiburg.de/~ps/SFB
Sternfreunde Breisgau e.V. Tel.: +49 761 278588
____________________________________________________________ ______________
|
|
|
Re: Using the serial port of a SunSparc station to the data in real time [message #6791 is a reply to message #6788] |
Mon, 12 August 1996 00:00  |
thompson
Messages: 584 Registered: August 1991
|
Senior Member |
|
|
orka@unixa.nerc-keyworth.ac.uk (Nigel Rees) writes:
> Does anybody know if it is possible to access the serial port of a SunSparc
> station(ttya), directly from IDL. This is currently achieved using C called
> from IDL, and this is having portability problems. Any help gratefully
> recieved.
> Thankyou
> Nigel.
I've never tried it myself, and don't know if this will work for what you're
trying to do, but have you tried treating the port as if it were a file, e.g.
openr, unit, '/dev/ttya', /get_lun
Bill Thompson
|
|
|