Set range of CAN identifiers to pass acceptance filter
filterAcceptRange(canch, rangestart, rangeend) sets the acceptance filter for standard identifier CAN messages. It allows messages within the given range on the CAN channel canch to pass. rangestart and rangeend establish the beginning and end of the acceptable range. You can use this function with Vector devices only.
The CAN channel that you want to set the filter for.
The first identifier of the range of message IDs that the filter accepts.
The last identifier of the range of message IDs that the filter accepts.
canch = canChannel('Vector','CANCaseXL 1',1) filterAcceptRange(canch,600,625) filterAcceptRange(canch,705,710)
When you call filterAcceptRange on an open or reset filter, it automatically blocks the entire standard CAN identifier range, allowing only the desired range to pass. Subsequent calls to filterAcceptRange open additional ranges on the filter without blocking the ranges previously allowed.