Specifications

16 Softing
16-12
Receive-block
To receive CAN-messages specified in the setup-block, a SIMULINK-model can
contain as many as needed receive-blocks.
The first dialogue-entry specifies from which CAN-port the CAN-message
should be received.
The second dialogue-entry specifies the identifiers for CAN-messages to be
received. The identifiers entered here as a row-vector have to be a subset of the
receive identifiers defined in the setup-block of either CAN-port 1 or 2. If the
an identifier is specified which was not defined in the seup-block an according
error message is output after downloading the xPC Target application. The
block has as many outputs as the row-vector has elements. The data (double /
8byte) received with the identifier as the first element of the is output on the
first block output and so on
The third dialogue-field specifies at which sample time intervals the
CAN-messages have to be read out of the object buffer. By using more than one
receive-block it is possible to get CAN-messages at different sample time
intervals even with the same identifiers by entering appropriate sample times
for each receive-block.