MATLAB 帮助中心
配置过滤器以阻止具有指定标识符类型的 CAN 报文
filterBlockAll(canch,type)
filterBlockAll(canch,type) 配置 CAN 报文过滤器以阻止与指定标识符类型匹配的所有报文。
canch
type
示例
全部折叠
阻止所有具有标准 ID 的报文类型。
canch = canChannel('Vector','CANCaseXL 1',1) filterBlockAll(canch,'Standard')
要对其进行过滤的 CAN 设备通道,指定为 CAN 通道对象。
示例: canch = canChannel('NI','CAN1')
canch = canChannel('NI','CAN1')
'standard'
'extended'
作为过滤依据的标识符类型,指定为字符向量或字符串。CAN 报文标识符类型为 'Standard' 和 'Extended'。
'Standard'
'Extended'
示例: 'Standard'
数据类型: char | string
char
string
在 R2011b 中推出
canChannel
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.
选择网站
选择网站以获取翻译的可用内容,以及查看当地活动和优惠。根据您的位置,我们建议您选择:。
您也可以从以下列表中选择网站:
如何获得最佳网站性能
选择中国网站(中文或英文)以获得最佳网站性能。其他 MathWorks 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处