This model shows CAN I/O communication using the First-In, First-Out (FIFO) mode of the Softing® CAN-AC2-PCI board. The FIFO Read block uses a function call output format.
Important: CAN_MESSAGE data types are used for message storage. See the Can Pack and Can Unpack blocks in the Encode Messages and Function-Call Decoder subsystems for details.
For this example, the CAN network consists of a single physical connection between CAN port 1 and CAN port 2 (loop-back configuration). To test this model:
Install the CAN-AC2-PCI board in the target computer.
Use a serial 9-pin/9-pin cable (directly wired) to connect CAN port 1 and CAN port 2.
Set the switches on the board backplane to terminate both ports.
Boot the target computer as an xPC Target™ machine.
At the MATLAB® command prompt, type xpccanpcififo1sfdemo to download and run the model on the target computer.
Model for PC/104 Systems