MATLAB 帮助中心
从 J1939 总线接收参数组
pgrp = receive(chan,count)
pgrp = receive(chan,count) 通过通道 chan 从总线接收参数组。接收的参数组数量不超过 count 的值。
pgrp
chan
count
示例
全部折叠
将 count 指定为 Inf,以从总线接收所有可用的参数组。
Inf
db = canDatabase('MyDatabase.dbc') chan = j1939Channel(db,'Vector','CANCaseXL 1',1) start(chan) pgrp = receive(chan,Inf)
J1939 通道,指定为通道对象。使用 j1939Channel 函数创建和定义通道。
j1939Channel
要接收的最大参数组数,指定为双精度值。count 必须为正值,或为 Inf 以指定所有可用参数组。
数据类型: double
double
J1939 参数组,以时间表形式返回。
在 R2015b 中推出
start
transmit
j1939ParameterGroupTimetable
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 国家/地区网站并未针对您所在位置的访问进行优化。
美洲
欧洲
亚太
联系您当地的办事处