Specifications

5 CAN I/O Support for FIFO
5-36
condition and take appropriate action, like stopping the execution or resetting
the receive FIFO.
The block has a single output port of type double returning a scalar value
containing the current receive FIFO level (number of messages to be
processed).
The dialog box of the block lets you define the following settings.
Board — Defines which physically present board is accessed to read the
current receive FIFO level. 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.
Sample time — The second control (edit field) defines the sample time at which
the FIFO Read RCV Level driver block is executed during a model (target
application) run.
FIFO Reset RCV Driver Block
The FIFO Reset RCV driver block is used to reset the receive FIFO. This will
delete all messages currently stored in the receive FIFO and reset the level
counter to 0. As an example, you can use this driver block to reset the receive
FIFO after having detected a fault condition.
The block has a single input port of type double. If a scalar value of 1 is passed,
the transmit FIFO gets reset, if 0 is passed no action takes place.