| Contents | Index |
Note filterSet will be removed in a future version. Use filterAllowAll, filterAllowOnly, or filterBlockAll instead. |
filterSet(canch, code, mask, idtype)
filterSet(canch, id, idtype)
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.
You can configure message filtering only when the CAN channel is offline.
CAN message filters initialize to fully open.
Use filterReset to make the acceptance filters fully open.
filterSet supports either standard or extended CAN identifiers.
canch = canChannel('Vector','CANCaseXL 1',1)
filterSet(canch,500,750, 'Standard')
filterSet(canch,2500,3000,'Extended')
To let 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-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |