Skip to Main Content Skip to Search
Product Documentation

CAN FIFO Demonstrations

xPC Target CAN FIFO Demonstrations for CAN-AC2-PCI and CAN-AC2-104 Boards

The xPC Target product contains the following demos that illustrate the use of the Softing CAN FIFO blocks. Some models use CAN_MESSAGE data types, some use double data types. Models that use double data types are considered legacy demos. Each demo requires a loopback cable connected between the two ports on the board. The demos send messages on port 1 and receive messages on port 2.

These models have the following naming conventions:

CAN-AC2-PCI Demo CAN-AC2-104 DemoDemonstrates CAN I/O Communication Using FIFO Mode of the...

CAN I/O FIFO Mode - Simple Use Case — CAN_MESSAGE data type

CAN I/O FIFO Mode — Simple Use Case — Double data type

CAN I/O FIFO Mode - Simple Use Case — CAN_MESSAGE data type

CAN I/O FIFO Mode - Simple Use Case — Double data type

Softing CAN-AC2-PCI and CAN-AC2-104 boards and illustrates basic functionality of the boards.

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

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

Softing CAN-AC2-PCI board and illustrates CAN I/O communication using the First In First Out (FIFO) mode. The FIFO Read block uses a function-call output format.

CAN I/O FIFO Mode - The "No New Event" Message — Double data type

CAN I/O FIFO Mode - The "No New Event" Message — Double data type

Softing CAN-AC2-PCI and CAN-AC2-104 boards and illustrates the condition and detection of the No new event message.

CAN I/O FIFO Mode - Dynamic Message Generation — CAN_MESSAGE data type

CAN I/O FIFO Mode - Dynamic Message Generation — Double data type

CAN I/O FIFO Mode - Dynamic Message Generation — CAN_MESSAGE data type

CAN I/O FIFO Mode - Dynamic Message Generation — Double data type

Softing CAN-AC2-PCI and CAN-AC2-104 boards and illustrates how CAN messages can be dynamically constructed at run-time.

CAN I/O FIFO Mode - Stopping on FIFO Overflow — CAN_MESSAGE data type

CAN I/O FIFO Mode - Stopping on FIFO Overflow — Double data type

CAN I/O FIFO Mode - Stopping on FIFO Overflow — CAN_MESSAGE data type

CAN I/O FIFO Mode - Stopping on FIFO Overflow — Double data type

Softing CAN-AC2-PCI and CAN-AC2-104 boards. For the case where data is being received faster than it is being processed, these demos illustrate how to stop execution of the model after detecting a receive FIFO overflow.

CAN I/O FIFO Mode - Resetting before FIFO Overflow — CAN_MESSAGE data type

CAN I/O FIFO Mode - Resetting before FIFO Overflow — Double data type

CAN I/O FIFO Mode - Resetting before FIFO Overflow — CAN_MESSAGE data type

CAN I/O FIFO Mode - Resetting before FIFO Overflow — Double data type

Softing CAN-AC2-PCI and CAN-AC2-104 boards. For the case where data is being received faster than it is being processed, these demos illustrate how to reset the receive FIFO before it overflows.

CAN I/O FIFO Mode - Acceptance Filters — CAN_MESSAGE data type

CAN I/O FIFO Mode - Acceptance Filters — Double data type

CAN I/O FIFO Mode - Acceptance Filters — CAN_MESSAGE data type

CAN I/O FIFO Mode - Acceptance Filters — Double data type

Softing CAN-AC2-PCI and CAN-AC2-104 boards and illustrates how to use acceptance filters. The objective is to filter any CAN messages with an identifier larger than 127.

CAN I/O FIFO Mode - Loading Messages from CANdb DBC Files — CAN_MESSAGE data type

CAN I/O FIFO Mode - Loading Messages from CANdb DBC Files — CAN_MESSAGE data type

Softing CAN-AC2-PCI and CAN-AC2-104 boards. The demo loads message and signal definitions from a CANdb DBC database file. This demo assumes that the CANdb file, demoData.dbc, resides in the xpcdemos folder.

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS