| xPC Target | ![]() |
www.kxcad.net Home > CAE Software Index > MATLAB Index >
Encode Arinc 429 Words for Send block
xPC Target Library for Arinc-429
The output port of an Encode block is a signal of type double. Because the Encode block encodes the data on this port in a nonstandard way, you must send this data to one of the following:
Condor CEI-520A Send block — The ARINC Send block converts the data into standard double output. This is the block to which you will most likely send data from the ARINC Encode block.
MUX block — The MUX block does not interpret the data. After the MUX block, you can send it to an ARINC Send block.
Enter a three digit octal number as the label. The label field of each ARINC word sent over the output port will contain this value.
Enter a vector consisting of values between 0 and 3. These values specify the data type. The length of this vector determines the widths of both the input and output ports. The data type determines how the input double value is converted to a corresponding ARINC value, as follows
Type | Interpretation |
|---|---|
0 | Raw — Cast the input to an unsigned 32-bit integer and output it as an ARINC word with no further processing. |
1 | BNR (two's complement binary notation) — Cast the input as a signed integer, clamp it to be in the range representable by a signed 19-bit binary integer, and pack it into an ARINC word with the appropriate Sign/Status Matrix (SSM), Source/Destination Identifier (SDI), and Label data. |
2 | BCD (binary coded decimal) — Cast the input as a signed integer, clamp it to be in the range representable by an ARINC five character BCD value, and pack it into an ARINC word with the appropriate SSM, SDI, and Label data. |
3 | Discretes —- Cast the input as an unsigned 32-bit integer and pack the low order 19 bits of the result into an ARINC word with the appropriate SSM, SDI, and Label data. |
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 | The resolution value specifies, in the same units as the input signal, the value of the least significant bit of the binary data field. For example, if the associated resolution value is 10 and the input signal contains the value 1000, the output ARINC word will contain the binary number 100 in its data field. A 19-bit signed ARINC binary can represent a range from -262,144 to 262,143. If the combination of input signal and resolution produces a value outside this range, the block clamps it to be within the range. |
BCD | The resolution value specifies, in the same units as the input signal, the value of the least significant digit of the BCD data field. For example, if the associated resolution is 10 and the input signal contains the value 1000, the output ARINC word will contain the number 100 in its data field, encoded in BCD. The range representable as an ARINC BCD value is -79,999 to 79,999. If the combination of input signal and resolution produces a value outside this range, the block clamps it to be within the range. |
Discretes | The block ignores any resolution value. However, you must still include an associated value in the resolution vector. |
Enter a vector or scalar value as the SDI 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.
This block interprets the SDI vector values 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, Discretes | If the SDI element is in the range 0 to 3, the block sets the SDI field of the corresponding output word to that value. If an SDI element has a value of -1, the block performs no SDI processing on the corresponding output word. |
Enter a vector or scalar value as the SDI 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.
If the SSM element is in the range 0 to 3, the block sets the SSM field of the corresponding output word to that value. If an SSM element has a value of -1, the block performs no SSM processing on the corresponding output word. Note that the meaning of a given SSM value differs depending on the data type of the ARINC word.
| Condor CEI-x20 Receive | Condor Decode ARINC 429 Words from Receive | ![]() |
© 1984-2007 The MathWorks, Inc. Terms of Use Patents Trademarks Acknowledgments