From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,6439f56f895df143,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-15 09:50:47 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: romans_paula@hotmail.com (Paula) Newsgroups: comp.lang.ada Subject: New to Ada..need some help regarding Binary Conversion?? Date: 15 Oct 2002 09:50:47 -0700 Organization: http://groups.google.com/ Message-ID: <4ee1d187.0210150850.62ce918a@posting.google.com> NNTP-Posting-Host: 192.45.72.27 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1034700647 7987 127.0.0.1 (15 Oct 2002 16:50:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 15 Oct 2002 16:50:47 GMT Xref: archiver1.google.com comp.lang.ada:29806 Date: 2002-10-15T16:50:47+00:00 List-Id: 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