Main Content

filterAllowAll

Allow all CAN messages of specified identifier type

Description

filterAllowAll(canch, type) opens the filter on the specified CAN channel to allow all messages matching the specified identifier type to pass the acceptance filter.

example

Examples

collapse all

Allow all standard and extended ID messages to pass the filter.

canch = canChannel('Vector','CANCaseXL 1',1);
filterAllowAll(canch,'Standard')
filterAllowAll(canch,'Extended')

canch.FilterHistory
'Standard ID Filter: Allow All | Extended ID Filter: Allow All'

Input Arguments

collapse all

CAN device channel, specified as a CAN channel object, on which to filter.

Example: canch = canChannel('NI','CAN1')

Identifier type by which to filter, specified as a character vector or string. CAN messages identifier types are 'Standard' and 'Extended'.

Example: 'Standard'

Data Types: char | string

Version History

Introduced in R2011b