CAN FIFO Loopback Tests

The Simulink® Real-Time™ product contains the following examples that illustrate the use of the Softing® CAN FIFO blocks. The models use CAN_MESSAGE data types. Each example requires a loopback cable connected between the two ports on the board. The examples send messages on port 1 and receive messages on port 2.

These models have the following naming conventions:

  • Model names appended with s — Output is a vector of CAN_MESSAGE data with length equal to the value of the FIFO read depth parameter. This length is also the maximum number of messages that the block returns. The second output port returns the number of messages that are present in the output.

  • Model names appended with sf — Output contains one CAN_MESSAGE message at a time. The block calls the function-call output between 0 and FIFO read depth number of times, depending on how many messages are in the FIFO.

Example Shows CAN I/O Communication Using FIFO Mode of the...

CAN I/O FIFO Mode - Simple Use Case (with CAN_MESSAGE)

Softing CAN-AC2-PCI board. It illustrates the basic functionality of the board.

CAN I/O FIFO Mode - Simple Use Case (with CAN_MESSAGE and Function Call Output)

Softing CAN-AC2-PCI board. It illustrates CAN I/O communication using a function call output format for the FIFO Read block.

Was this topic helpful?