Specifications

5 CAN I/O Support for FIFO
5-28
using the block parameters. In order to be able to transmit more than one CAN
message per block instance a matrix signal is used as a container for all
information.
The dimension of the matrix signal entering the block has to be n*5, where n is
the number of CAN messages to be sent out by this block instance. Therefore,
each row of the matrix signal defines one CAN message and each row combines
the 5 elements of information defined above (in this order).
For more information on how to construct the correct matrix signal for the
FIFO write block, see “Examples” on page 5-40.
For certain applications it may be necessary to make the writing of a CAN
message into the transmit FIFO dependent on the model dynamics. For this,
the matrix signal can also be of dimension n*6 instead of n*5. In this case, the
sixth column defines if the corresponding CAN message is written into the
transmit FIFO (value 1) or not (value 0).
The dialog box of the block lets you define the following settings.
Board — Defines which physically present board is used to send out the CAN
messages defined by this block instance. For more information about the
meaning of the board number see the Setup driver block described above. If just
one board is present in the target system, board number 1 should be selected.
Show status output port — Checking this box lets you enable the Status
output port. If the box is unchecked (disabled), the block does not have an
output port. If enabled, a port is shown. The signal leaving the block is a vector
of type double where the number of elements depends on the signal dimension
of the block input port. There is one element for each CAN message written into
the transmit FIFO and the value is identical to the return argument of function