帮助中心帮助中心
创建 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 中推出
您点击的链接对应于以下 MATLAB 命令:
请在 MATLAB 命令行窗口中直接输入以执行命令。Web 浏览器不支持 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