MATLAB 帮助中心
从 XCP 通道中删除所有测量变量列表
freeMeasurementLists(xcpch)
freeMeasurementLists(xcpch) 从指定的 XCP 通道中删除所有已配置的测量变量列表。
xcpch
示例
全部折叠
创建两个数据采集列表并将其删除。
创建一个对象来解析 A2L 文件并将其连接到 XCP 通道。
a2lfile = xcpA2L('XCPSIM.a2l') xcpch = xcpChannel(a2lfile,'CAN','Vector','Virtual 1', 1);
将通道连接到服务器模块。
connect(xcpch)
使用 '10 ms' 事件和 'PMW' 测量变量设置一个数据采集测量变量列表。
'10 ms'
'PMW'
createMeasurementList(xcpch, 'DAQ', '10 ms', {'BitSlice0','PWMFiltered','Triangle'})
使用 '100ms' 事件和 'PWMFiltered' 以及 'Triangle' 测量变量创建另一个测量变量列表。
'100ms'
'PWMFiltered'
'Triangle'
createMeasurementList(xcpch, 'DAQ', '100ms', {'PWMFiltered','Triangle'})
查看这些测量变量列表的详细信息。
viewMeasurementLists(xcpch)
DAQ List #1 using the "10 ms" event @ 0.010000 seconds and the following measurements: PWM DAQ List #2 using the "100ms" event @ 0.100000 seconds and the following measurements: PWMFiltered Triangle
释放这些测量变量列表。
XCP 通道,指定为使用 xcpChannel 创建的 XCP 通道对象。随后,该 XCP 通道对象可以与 A2L 文件定义的指定服务器模块通信。
xcpChannel
在 R2013a 中推出
xcpA2L | xcpChannel | createMeasurementList | viewMeasurementLists
xcpA2L
createMeasurementList
viewMeasurementLists
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处