receive (J1939)

Receive parameter groups from J1939 bus

Description

example

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.

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 thej1939Channel 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 an array of ParameterGroup objects.

See Also

Functions

Introduced in R2015b