Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

filterAllowAll

Allow all CAN messages of specified identifier type

Syntax

filterAllowAll(canch, type)

Description

example

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.

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

Introduced in R2011b

Was this topic helpful?