comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Using the serial port of a SunSparc station to the data in real time
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Using the serial port of a SunSparc station to the data in real time [message #6788] Tue, 13 August 1996 00:00
pit is currently offline  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 Go to previous message
thompson is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: C-->IDL / FORTRAN-->IDL searched
Next Topic: SVD in WAVE broken???

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 17:46:48 PDT 2025

Total time taken to generate the page: 0.00697 seconds