| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Vehicle Network Toolbox |
| Contents | Index |
| Learn more about Vehicle Network Toolbox |
filterSet(canch, code, mask, idtype)
filterSet(canch, id, idtype)
| canch | The CAN channel that you want to set the filter for. |
| code | The value required for each bit position of the identifier. |
| mask | The bits in the identifier that are relevant to the filter. |
| id | Set a filter on the CAN message with the id, range of ids, multiple ranges of ids, or a combination of ids. |
| idtype | A string specifying either a standard or an extended CAN message id type. |
filterSet(canch, code, mask, idtype) sets the CAN message acceptance filter to the specified code and mask. You also must specify the CAN identifier type idtype on the CAN channel canch.
filterSet(canch, id, idtype) sets the CAN message acceptance filter by determining the best possible code and mask based on the ID and identifier type specified in the input argument.
Notes
|
canch = canChannel('Vector','CANCaseXL 1',1)
filterSet(canch,500,750, 'Standard')
filterSet(canch,2500,3000,'Extended')
To let the Vehicle Network Toolbox determine the best possible code and mask option:
canch = canChannel('Kvaser', 'USBcan Professional 1', 1)
filterSet(canch, [500:502 1000], 'Standard')
filterSet(canch, [7500:8000 12000], 'Extended')filterAcceptRange, filterBlockRange, filterReset

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