Condor Decode ARINC 429 Words from Receive

www.kxcad.net Home > CAE Software Index > MATLAB Index >



Decode ARINC 429 Words from Receive block

Library

xPC Target Library for Arinc-429

Note

The input port of a Decode block is a signal of type double. Because the Decode block interprets the data on this port in a nonstandard way, you can send the data to this port from one of the following:

The output port of a Decode block is in standard double format.

The input to this block should be a CEI-x20 Receive block. The Decode block input port width will automatically adapt to that of the source block. The connected width of the input port of the block adjusts to the block it is connected to.

Block Parameters

Label

Enter a three digit octal number. If the label of an input word does not match this label, the block completely ignores the word and does not apply the Sync mask and Sync value parameters.

Data type vector

Enter a vector consisting of values between 0 and 3. These values specify the data type. The length of this vector determines how many ARINC words the block will attempt to decode and output each sample time.

The elements of the vector determine how the input double value is converted to a corresponding double output value, as follows

Type

Interpretation

0

Raw — Convert the entire (unsigned) 32 bit input word to double.

1

BNR — For each word, convert bits 10-28 from signed binary format to double.

2

BCD — For each word, convert bits 10-28 from BCD format to double, using the sign data in the SSM.

3

Discretes — For each word, extract bits 10-28 and return them as a double.

The elements of the data type vector determine how the input ARINC value is converted to a corresponding double output. The following describes how this block performs the conversion. For the purposes of this description, n denotes the length of the data type vector.

Resolution vector

Enter a vector or scalar value as the resolution vector. This must be a vector of the same length as the data type vector. Otherwise, the scalar value is applied to the length of the data type vector. The block works with the data types as follows

Type

Effect

Raw

The block ignores any resolution value. However, you must still include an associated value in the resolution vector.

BNR, BCD

The resolution value specifies, in output port units, the value of the least significant bit of the data field. For example, if the resolution is 10 and the input data contains the value 100, the output signal will contain the number 1000.

Discretes

The block ignores any resolution value. However, you must still include an associated value in the resolution vector.

Sync mask

Enter a value, in hexadecimal, to specify which bits (if any) of the input words are the sync bits. (A sync bit lets you specify, using other parameters, when a message should begin.) The Decode block will examine these bits to look for the start of the next message. A message might be a string of one or more words. For example, a sync mask value of 0x300 equals 1100000000 in binary. This value selects the SDI bits (bits 9 and 10) as the sync bits. This functionality works in conjunction with the Sync value parameter.

If the sync mask is 0x0, no sync logic is used. In this case, the next word always begins a new message.

Sync value(s)

This parameter specifies the sync logic for the block. Enter one hex value to specify oneSync, two hex values separated by a space for twoSync logic. For example, the sync value

0x100

selects oneSync logic. The sync value

0x100 0x200

selects twoSync logic. You can enter an 32-bit value.

The sync value takes into account the value of the sync mask, as follows:

Provide time tags

Select this check box to enable an output port of width 2n + 1, with time tag data in the last n elements.

  


© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments