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.

filterAllowOnly (J1939)

Allow only specified parameter groups to pass J1939 channel filter

Syntax

filterAllowOnly(chan,pgname)

Description

example

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

Examples

collapse all

Configure the channel filter to allow only specified J1939 parameter groups to be received on the channel.

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

Input Arguments

collapse all

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

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

Example: 'PG1'

Data Types: char | string | cell

Introduced in R2015b

Was this topic helpful?