This model shows how to do asynchronous message-based event support using interrupt-driven CAN I/O communication with the Softing® CAN-AC2-PCI board.
Important: CAN_MESSAGE data types are used for message storage. See the Can Pack and Can Unpack blocks 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.
At the MATLAB® command prompt, type xpccanintpcisdemo to download and run the model on the target computer.