User`s guide
1 Getting Started
1-24
25
Refer to the unpack function to understand more about its input arguments.
Save a CAN Channel
You can save a CAN channel object to a file using the save function anytime during the
CAN communication session.
For example, create a channel object canch1. To save it to the MATLAB file
mycanch.mat, type:
save mycanch.mat canch1
Load a Saved Channel
If you have saved a CAN channel as a MATLAB file, you can load it into a session using
the load function. For example, to reload mycanch.mat created above, type:
load mycanch.mat
The loaded CAN channel object reconnects to the specified hardware and reconfigures
itself to the specifications when the channel was saved.
Filter Messages
You can set up filters on your channel to accept messages based on the filtering
parameters you specify. Set up your filters before putting your channel online. For more
information on message filtering, see these functions:
• filterAllowAll
• filterBlockAll
• filterAllowOnly
To specify message names you want to filter, create a CAN channel and attach a
database to the channel:
canch1 = canChannel('Vector','CANcaseXL 1',1);
canch1.Database = canDatabase('demoVNT_CANdbFiles.dbc');