| Contents | Index |
Note filterBlockRange will be removed in a future version. Use filterAllowAll, filterAllowOnly, or filterBlockAll instead. |
filterBlockRange(canch, rangestart, rangeend) blocks messages within a given range by setting an acceptance filter. You can use this function with Vector devices only.
You can configure message filtering only when the CAN channel is offline.
CAN message filters initialize to fully open.
filterReset makes the acceptance filters fully open.
filterBlockRange supports only standard (11-bit) CAN identifiers.
You must set the values from rangestart through rangeend in increasing order.
filterBlockRange and filterAcceptRange work together by blocking and allowing ranges of CAN messages within a single filter. You can perform both operations multiple times in sequence to custom configure the filter as desired.
You can set the filter to block or accept messages within a specific range.
canch = canChannel('Vector','CANCaseXL 1',1)
filterBlockRange(canch, 500, 750)
filterAcceptRange(canch,600,625)
filterAcceptRange(canch,705,710)
filterBlockRange(canch,1075,1080)filterAcceptRange | filterReset | filterSet

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 |