Re: [IADS] Digest for iads@googlegroups.com - 3 Messages in 1 Topic

82 views
Skip to first unread message

Rob Wood

unread,
Nov 12, 2010, 8:54:42 AM11/12/10
to ia...@googlegroups.com
Yes I am using ACRA UAR/102 card. The string is ASCII RS232 but I beleive it will get displayed as Hex in GsWorks. But I will need to combine all the words into a floating point.
 
Here's details from a previous email.
 
Here's what I changed in your setup:
 
1. The (*) is not two character 4,2 but rather decimal number 42, hex 0x2A. You will see the change in the edit start sequence screen.
2. Changed the stop sequence to length delimited with 14 bytes.
3. Added 7 words (14 bytes) to the message. You will notice the positions are all even numbers. Please see page 8 of "How to use the UAR102" for an explanation.
4. Removed the second message.
 
To do:
 
The message parameters (UAR_0_J10_Msg1_DW0, UAR_0_J10_Msg1_DW2, UAR_0_J10_Msg1_DW4, etc) now contains the string of data. For example
 
*000114.55841 is broken down into:
UAR_0_J10_Msg1_DW0 = *0
UAR_0_J10_Msg1_DW0 = 00
UAR_0_J10_Msg1_DW0 = 11
UAR_0_J10_Msg1_DW0 = 4.
UAR_0_J10_Msg1_DW0 = 55
UAR_0_J10_Msg1_DW0 = 84
UAR_0_J10_Msg1_DW0 = 1x
 
You may need to change the message size to 13 bytes to get rid of the trailing x in order to get it to work. Give both ways a try. (The x is an unknown value).
 
The words now contain characters. These characters need to be translated back into a floating point number. I'd advise going to Symvionics to get a methodology. Otherwise, as a start, here's what I'd do:
 
1. Bit_Pick() the character from the parameter.
2. Subtract 48 from the value ( Char '2' = 50 dec, so 50-48 = 2)
3. Multiply that number by the place value.
4. Add it to the total
5. Repeat for all characters.

On Fri, Nov 12, 2010 at 6:01 AM, <iads+n...@googlegroups.com> wrote:

Group: http://groups.google.com/group/iads/topics

    Rob <robw...@gmail.com> Nov 11 07:49AM -0800 ^
     
    All - I have an ASCII RS232 string that I need to convert realtime to
    Decimal in IADS. Is there an exsisting method to derive this
    parameter.
     
    I have a Paroscientific Pressure tranducer that outputs an ASCII
    stream. I will have to convert it then translate that to a pressure. I
    can get the translation from Paroscientific. But I still need the
    ASCII conversion method for IADS.
     
    Thank you.

     

    "Kathy Rodittis" <ka...@iads-soft.com> Nov 11 08:25AM -0800 ^
     
    Hi Rob-
     
    Before I reply can tell me if you're using any of the Acra UART cards?
    Because in the 7.1 release there is a way to have it handled automatically (
    like video ).
     
    -Kathy
     
    -----Original Message-----
    From: ia...@googlegroups.com [mailto:ia...@googlegroups.com] On Behalf Of Rob
    Sent: Thursday, November 11, 2010 7:50 AM
    To: IADS
    Subject: [IADS] Converting ASCII RS-232 String to Decimal
     
    All - I have an ASCII RS232 string that I need to convert realtime to
    Decimal in IADS. Is there an exsisting method to derive this
    parameter.
     
    I have a Paroscientific Pressure tranducer that outputs an ASCII
    stream. I will have to convert it then translate that to a pressure. I
    can get the translation from Paroscientific. But I still need the
    ASCII conversion method for IADS.
     
    Thank you.
     
    --
    You received this message because you are subscribed to the Google Groups
    "IADS" group.
    To post to this group, send email to ia...@googlegroups.com.
    To unsubscribe from this group, send email to
    iads+uns...@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/iads?hl=en.

     

--
You received this message because you are subscribed to the Google Groups "IADS" group.
To post to this group, send email to ia...@googlegroups.com.
To unsubscribe from this group, send email to iads+uns...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/iads?hl=en.

Kathy Rodittis

unread,
Nov 12, 2010, 9:54:17 AM11/12/10
to ia...@googlegroups.com

Hi Rob-

 

It looks like the new SmartEU feature in 7.1 might work for you.  This feature will automatically combine the data words that compose message UAR_0_J10_Msg1, ignore the start/stop bytes and convert it into a floating point number called UAR_0_J10_Msg1.

 

When you navigate through the IADS Start Wizard in 7.1, you’ll get to a screen called “SmartEU Setup”.  Click on the check box that says “Detect and translate ASCII values from Acra UAR-102 card into floating point number”.  Then see if you like the results!

 

-Kathy

 


 

Rob Wood

unread,
Nov 13, 2010, 4:38:46 PM11/13/10
to ia...@googlegroups.com
Jim
 
Your suggestion seems the best solution for me right now but I am stuck making it work heres what I got
 
DW4   3131
DW6   342E
DW8   3433
DW10 3935
 
The data I need is in bold. I am trying to display 14.4395 (PSI) I will also need to make caluclations on this number for airspeed and altitude so it needs to be numeric. I don't fully understand the "MakeBlob" thing please help with deriving the IADS equations.
Reply all
Reply to author
Forward
0 new messages