comp.lang.ada
 help / color / mirror / Atom feed
* New to Ada..need some help regarding Binary Conversion??
@ 2002-10-15 16:50 Paula
  2002-10-15 17:23 ` Colin Paul Gloster
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Paula @ 2002-10-15 16:50 UTC (permalink / raw)


Hello all,

I am new to the Ada programming language and have worked through the
wonderful material presented on Adapower.com and I have worked through
the Lovelace tutorial.  I was doing prototyping using File IO and have
worked through most of the problems there. My biggest challenge is now
I must read in a "data signal" (which is in binary, in the form of
16-bit words, can be over more than one word, and isn't in a file),
convert it to decimal and apply the correct scaling data to convert it
to engineering units, and then do the reverse (take in engineering
units, convert to raw bus data). I can do the scaling part...no
problem..it's the reading in (I don't understand how to get the input
if it's not in a file or from the keyboard). A coworker suggested
creating a big table of 16-bit binary arrays, that I could declare a
data-type as binary (??). Any help would be appreciated.

Thanks,

Paula



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-10-16 12:27 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-15 16:50 New to Ada..need some help regarding Binary Conversion?? Paula
2002-10-15 17:23 ` Colin Paul Gloster
2002-10-16 11:06   ` Paula
2002-10-16 12:27     ` Marin David Condic
2002-10-15 17:48 ` sk
2002-10-16 11:09   ` Paula
2002-10-15 18:36 ` Jeffrey Carter
2002-10-15 18:53 ` Larry Hazel

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