| Contents | Index |
filterAllowOnly(canch, 'name')
filterAllowOnly(canch, ids, 'type')
filterAllowOnly(canch, 'name') configures the filter on the channel canch, to pass only messages with the specified name.
filterAllowOnly(canch, ids, 'type') configures the filter on the channel canch, to pass only messages of the specified type with the specified identifier.
Use Database to attach a database to your CAN channel and filter messages using message names.
The id value is stored as a decimal value. To convert a hexadecimal to a decimal value, use the hex2dec function.
To filter a database defined message with name 'EngineMsg', type:
canch = canChannel('Vector','CANCaseXL 1',1);
canch.Database = canDatabase('candatabase.dbc');
filterAllowOnly(canch,'EngineMsg')
To filter messages by identifier, type:
canch = canChannel('Vector','CANCaseXL 1',1);
filterAllowOnly(canch,[602 612],'Standard');
filterAllowAll | filterBlockAll | hex2dec

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |