Documentation Center

  • Trials
  • Product Updates

filterReset

Open CAN message acceptance filters

Syntax

filterReset(canch)

    Note:   You cannot set filters on an NI device channel.

Description

filterReset(canch) resets the CAN message filters on the CAN channel canch for both standard and extended CAN identifier types. Then all messages of all identifier types can pass.

This function does not work if the channel is online. Make sure that the channel is offline before calling filterReset.

Input Arguments

canch

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

Examples

Reset the message filters as shown:

canch = canChannel('Vector','CANCaseXL 1',1)
filterBlockRange(canch, 500, 750)
filterAcceptRange(canch,600,625)
filterAcceptRange(canch,705,710)
filterBlockRange(canch,1075,1080)
filterSet(canch, 500, 750, 'Standard')
filterReset(canch)

See Also

| |

Was this topic helpful?