Main Content

filterBlockOnly

Block only specified parameter groups on J1939 channel filter

Description

filterBlockOnly(chan,pgname) configures the filter on the channel chan to block only the parameter groups specified by pgname.

example

Examples

collapse all

Configure the channel filter to block only specified J1939 parameter groups on the channel.

db = canDatabase('MyDatabase.dbc');
chan = j1939Channel(db,'Vector','CANCaseXL 1',1);
filterBlockOnly(chan,{'PG1' 'PG2'})

Input Arguments

collapse all

J1939 channel, specified as a channel object. Use the j1939Channel function to create and define the channel.

Blocked J1939 parameter groups, specified as a character vector, string, or array of these.

Example: 'PG1'

Data Types: char | string | cell

Version History

Introduced in R2015b