Main Content

receive

Receive parameter groups from J1939 bus

Description

pgrp = receive(chan,count) receives parameter groups from the bus via channel chan. The number of received parameter groups is limited to the value of count.

example

Examples

collapse all

Receive all the available parameter groups from the bus by specifying a count of Inf.

db = canDatabase('MyDatabase.dbc')
chan = j1939Channel(db,'Vector','CANCaseXL 1',1)
start(chan)
pgrp = receive(chan,Inf)

Input Arguments

collapse all

J1939 channel, specified as a channel object. Use the j1939Channel function to create and define the channel.

Maximum number of parameter groups to receive, specified as a double. count must be a positive value, or Inf to specify all available parameter groups.

Data Types: double

Output Arguments

collapse all

J1939 parameter groups, returned as a timetable.

Version History

Introduced in R2015b