Main Content

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:

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');

Set a filter on the channel to allow only the message EngineMsg, and display the channel FilterHistory property.

  Standard ID Filter: Allow Only | Extended ID Filter: Allow All

When you start the channel and receive messages, only those marked EngineMsg pass through the filter.

Related Topics