This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

receive (J1939)

Receive parameter groups from J1939 bus


pgrp = receive(chan,count)



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.


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)
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


Introduced in R2015b