|
Example |
Top Previous |
|
Example1:
We are interesting in CAN ID=44 standard frame. We'd like to catch the last frame with the 1st byte of data field being equal to 2.
Please see screenshot of model below:
If you send CAN bus data frame with CAN ID =44 (11 bits CAN ID) and 8 Data bytes=0x2, 0x0, 0x0,0x0, 0x0, 0x0, 0x0, 0x0 by external CAN Bus device, you will see one pulse in Simulink Scope from above model.
Please open "your CAN Controller library folder"/examples/example1_catchCANID.slx (You must change USB serial Port number in CAN_setup block according to your physical USB port number)
|