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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-10-16 04:06:19 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: romans_paula@hotmail.com (Paula) Newsgroups: comp.lang.ada Subject: Re: New to Ada..need some help regarding Binary Conversion?? Date: 16 Oct 2002 04:06:18 -0700 Organization: http://groups.google.com/ Message-ID: <4ee1d187.0210160306.18667d1b@posting.google.com> References: <4ee1d187.0210150850.62ce918a@posting.google.com> <3DAC4F21.60B7A90D@ACM.org> NNTP-Posting-Host: 192.45.72.27 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1034766379 23611 127.0.0.1 (16 Oct 2002 11:06:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Oct 2002 11:06:19 GMT Xref: archiver1.google.com comp.lang.ada:29835 Date: 2002-10-16T11:06:19+00:00 List-Id: Colin Paul Gloster wrote in message news:<3DAC4F21.60B7A90D@ACM.org>... > Paula wrote: > > "Hello all, > > 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" > > Hello Paula. > > Where exactly is the data signal coming from? You may need to write a > custom > device driver to get at the hardware, and maybe an interrupt service > routine too. > For example mouse drivers are interrupt driven. You may find it helpful > to read > about representation clauses, such as address clauses for interrupts. The data (from what I understand) is coming from a vme card along a bus. It will either be MIL-STD-1553, ARINC429, or HW signals. I am using the Aonix ObjectAda compiler and I'm running it on Win 2000 professional platform. Paula