Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

receive (J1939)

Receive parameter groups from J1939 bus

Syntax

pgrp = receive(chan,count)

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

Was this topic helpful?