readAxis
从直接内存读取和缩放指定的轴值
说明
示例
从 XCP 通道轴读取值
从 XCP 通道轴读取值,按名称标识要读取的轴。
a2lObj = xcpA2L('myA2Lfile.a2l'); chanObj = xcpChannel(a2lObj,'CAN','Vector','Virtual 1',1); connect(chanObj); value = readAxis(chanObj,'pedal_position');
或者,创建一个轴对象并读取其值。
axisObj = a2lObj.AxisXs('pedal_position');
value = readAxis(chanObj,axisObj);
输入参数
chanObj
— XCP 通道
通道对象
XCP 通道,指定为 XCP 通道对象。
示例: xcpChannel()
axis
— XCP 通道轴
轴对象 | 字符
XCP 通道轴,指定为字符向量或轴对象。
示例: 'pedal_position'
数据类型: char
输出参量
value
— 从轴读取的值
轴值
从轴读取的值,以轴支持的类型形式返回。
版本历史记录
在 R2018a 中推出
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)