Skip to Main Content Skip to Search
Product Documentation

filterBlockRange - Set range of CAN identifiers to block via acceptance filter

Syntax

filterBlockRange(canch, rangestart, rangeend)

Description

filterBlockRange(canch, rangestart, rangeend) blocks messages within a given range by setting an acceptance filter. You can use this function with Vector devices only.

Tips

Input Arguments

canch

The CAN channel that you want to set the filter for.

rangestart

The first identifier of the range of message IDs that the filter starts blocking at.

rangeend

The last identifier of the range of message IDs that the filter stops blocking at.

Examples

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)

See Also

filterAcceptRange | filterReset | filterSet

  


Recommended Products

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