Documentation search search close
CONTENTS
https://www.speedgoat.com/help/slrt/page/icon_documentation.jpg
v10.0.1.x for R2026a
View other versions

IO672 - Decode BC Message

IO672 - Decode BC Message — Extracts information out of one message in the receive list

Library

Simulink Real-Time - Speedgoat

Description

Each instance of this block extracts information out of one message in the receive list.

Ports

Inputs
MSG List

BC Message List.

Outputs
MSG List

Specifies the input and output message list passed to other Decode BC Message blocks. If this is the only Decode BC Message block in your model, connect the signal to a terminator or ground.

Status

The Status output is a vector of six elements from the received message, bit packed with information:

control, command1, status1, command2, status2, overall status

Use the Decode BC Status block to extract individual status bits from this status. To get multiple status bits, use multiple Decode BC Status blocks and feed, in parallel, the same signal to the Status ports.

Data

A vector of 32 short integers with the data from that message. For a message sent to an RT (R direction), these values are the ones sent. For a message from an RT (T direction), this contains the values from the RT. You do not need to decode the received message from an R message.

The block clears the status and data words to 0 if a matching message is not found in the list.

Parameters

Message number

Enter the number (position in the BC Message List) of the message to decode.

Sample Time

Defines the base sample time at which this driver block gets its sample hit. This parameter can also be set to -1 for inherited sample time. The units are in seconds.