Help CenterHelp Center
Allow only specified parameter groups to pass J1939 channel filter
filterAllowOnly(chan,pgname)
filterAllowOnly(chan,pgname) configures the filter on the channel chan to pass only the parameter groups specified by pgname.
chan
pgname
example
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'})
J1939 channel, specified as a channel object. Use the j1939Channel function to create and define the channel.
j1939Channel
Allowed 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
filterBlockOnly
다음 MATLAB 명령에 해당하는 링크를 클릭했습니다.
명령을 실행하려면 MATLAB 명령 창에 입력하십시오. 웹 브라우저는 MATLAB 명령을 지원하지 않습니다.
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