comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <sb463ba@l1-hrz.uni-duisburg.de>
Subject: Re: Ada way to read/write to character file
Date: Wed, 9 Jan 2002 16:12:13 +0000 (UTC)
Date: 2002-01-09T16:12:13+00:00	[thread overview]
Message-ID: <a1hq4t$tc$1@a1-hrz.uni-duisburg.de> (raw)
In-Reply-To: m3ofk46nx3.fsf@jupiter.solar.system

Michael Bode <m.g.bode@web.de> wrote:
: tmoran@acm.org writes:
:>   Given timing, error conditions, dropped lines, and the likelihood of
:> non-text data, I wonder how often you would actually want to do
:> "sequential text I/O" on an RS232 port. 
: 
: ...
: for a linear axis, 2 CCTV cameras and a scope. So I guess I will have to
: do that quite often :-).

The point is, I think, that Text_I/O is for text, where text refers
to the Ada notion of text, which includes lines, columns, pages and
what not; all of these give special meaning to some Character values
that you might not want to be that special for your devices.

So, when 0S services are called for, call the OS. Some package
producers have sets of subprograms to make things easier. If you
dig the archives for RS232/COM and Ada...

Moreover, if you want to live on the paranoia side, you might want
to consider it an assumption to consider OS's character
handling to be 8 bits chunk handling in sequential no-endian order.

And might it not be adventurous in some circumstances, like a
multi-access situation, to think that you would have to put hardware
in a required state just once at the start of a program?


Georg



  reply	other threads:[~2002-01-09 16:12 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-05 12:01 Ada way to read/write to character file Michael Bode
2002-01-07 15:13 ` Alfred Hilscher
2002-01-09  0:04   ` Nick Roberts
2002-01-09  2:12     ` tmoran
2002-01-09  6:25       ` Michael Bode
2002-01-09 16:12         ` Georg Bauhaus [this message]
2002-01-09 20:38           ` Michael Bode
2002-01-09 23:57             ` James Rogers
2002-01-10  6:17               ` Michael Bode
2002-01-10 23:13             ` Georg Bauhaus
2002-01-09 12:11       ` Nick Roberts
2002-01-09 14:17         ` Ted Dennison
2002-01-11  0:19           ` Nick Roberts
2002-01-12 16:01             ` Michael Bode
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox