Help CenterHelp Center
Block only specified parameter groups on J1939 channel filter
filterBlockOnly(chan,pgname)
filterBlockOnly(chan,pgname) configures the filter on the channel chan to block only the parameter groups specified by pgname.
chan
pgname
example
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'})
J1939 channel, specified as a channel object. Use the j1939Channel function to create and define the channel.
j1939Channel
Blocked J1939 parameter groups, specified as a character vector, string, or array of these.
Example: 'PG1'
'PG1'
Data Types: char | string | cell
char
string
cell
Introduced in R2015b
filterAllowAll
filterAllowOnly
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office