User`s guide

Vehicle Network Communication Examples
1-29
stop(canch1)
2
Check the channel status:
canch1
MATLAB displays the channel status:
.
.
.
Status: Offline - Waiting for START.
1 messages available to RECEIVE.
1 messages transmitted since last start.
0 messages received since last start.
3
Stop the second channel:
stop(canch2)
4
Check the channel status:
canch2
MATLAB displays the channel status:
Status: Offline - Waiting for START.
0 messages available to RECEIVE.
0 messages transmitted since last start.
1 messages received since last start.
Clean Up the MATLAB Workspace
When you no longer need the objects you used, remove them from the MATLAB
workspace. To remove channel objects and other variables from the MATLAB workspace,
use the clear function.
1
Clear the first channel:
clear canch1
2
Clear the second channel:
clear canch2
3
Clear the CAN messages:
clear 'messageout'
clear 'messagein'
4
Clear the unpacked value: