Specifications
CAN FIFO Driver Blocks for the CAN-AC2-104 with Philips SJA1000 CAN-Controller
5-31
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.
FIFO read depth — Defines the number of receive FIFO read attempts. Each
time the block gets executed it reads this fixed amount of events (CAN
messages) which leads to a deterministic time behavior independent of the
number of events currently stored in the receive FIFO. The Read depth (m)
defines at the same time the size of the matrix signal (m*6) leaving the first
output port. If no event is currently stored in the receive FIFO, the FIFO will
be read anyway but the Event type will be reported as 0 (No new event).
Show status output port — Checking this box lets you enable the Status
output port. If the box is unchecked (disabled), the block has one output port
for the events. If enabled, a second port is shown. The signal leaving that port
is a vector of type double with two elements.
[Number of lost messages (events), Bus state]
The first element returns the current value of the lost messages counter. The
receive FIFO can store up to 255 events. If the receive FIFO is not regularly
accessed for reading events, the FIFO gets filled and the lost messages counter
starts to count up. This is an indicator that events (messages) will be