本页面提供的是上一版软件的文档。当前版本中已删除对应的英文页面。
can.VendorInfo
(不推荐)显示可用的设备供应商信息
can.VendorInfo
将在以后的版本中删除。请改用 canChannelList
。请参阅兼容性注意事项。
说明
can.VendorInfo
对象显示指定 CAN 设备的设备供应商信息。
创建对象
描述
输入参数
index
— 设备通道索引
数值
设备通道索引,指定为数值。
属性
VendorName
— 供应商名称
字符
设备供应商的名称,指定为字符向量。
VendorDriverDescription
— 驱动程序描述
字符
为此供应商安装的设备驱动程序的说明。
VendorDriverVersion
— 驱动程序版本
字符
为此供应商安装的设备驱动程序版本。
ChannelInfo
— 通道信息
can.ChannelInfo
对象
有关可供此供应商使用的设备通道的信息。
示例
检查 Kvaser 供应商信息
获取有关已安装的 CAN 设备的信息。
info = canHWInfo
info = CAN Devices Detected Vendor | Device | Channel | Serial Number | Constructor ------ | --------- | ------- | ------------- | ------------------------------------ Kvaser | Virtual 1 | 1 | 0 | canChannel('Kvaser', 'Virtual 1', 1) Kvaser | Virtual 1 | 2 | 0 | canChannel('Kvaser', 'Virtual 1', 2) Vector | Virtual 1 | 1 | 0 | canChannel('Vector', 'Virtual 1', 1) Vector | Virtual 1 | 2 | 0 | canChannel('Vector', 'Virtual 1', 2) Use GET on the output of canHWInfo for more information.
查看 VendorInfo
属性列表。
info.VendorInfo
ans = 1x2 heterogeneous VendorInfo (VendorInfo, VendorInfo) array with properties: VendorName VendorDriverDescription VendorDriverVersion ChannelInfo
版本历史记录
在 R2009a 中推出R2017b: 要删除的函数
不推荐使用 can.VendorInfo
,它将在以后的版本中删除。请改用 canChannelList
。
MATLAB 命令
您点击的链接对应于以下 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:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)