MATLAB 帮助中心
创建 Simulink CAN 报文总线
canMessageBusType
canMessageBusType(modelName)
canMessageBusType 在基础工作区中创建名为 CAN_MESSAGE_BUS 的 Simulink® CAN 报文总线对象。对象属性的值是只读的,但仍有助于显示其数据结构。
CAN_MESSAGE_BUS
canMessageBusType(modelName) 在与指定模型 modelName 关联的数据字典中创建类型为 CAN_MESSAGE_BUS 的 Simulink CAN 报文总线对象。
modelName
示例
全部折叠
创建和查看 Simulink CAN 报文总线对象的属性。
canMessageBusType CAN_MESSAGE_BUS
CAN_MESSAGE_BUS = Bus with properties: Description: '' DataScope: 'Auto' HeaderFile: '' Alignment: -1 Elements: [7×1 Simulink.BusElement]
查看 Elements 属性。
Elements
CAN_MESSAGE_BUS.Elements
ans = 7×1 BusElement array with properties: Min Max DimensionsMode SampleTime Description Unit Name DataType Complexity Dimensions
模型的名称,指定为字符向量或字符串,该模型的数据字典随总线对象进行更新。
示例: 'CANModel'
'CANModel'
数据类型: char | string
char
string
在 R2017b 中推出
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处