transmit (J1939)

Send parameter groups via channel to J1939 bus

Syntax

transmit(chan,pgrp)

Description

example

transmit(chan,pgrp) sends the specified parameter groups in the array pgrp onto the J1939 bus via the channel chan.

Examples

collapse all

Send the parameter group 'MyParameterGroup' to the bus.

db = canDatabase('MyDatabase.dbc');
chan = j1939Channel(db,'Vector','CANCaseXL 1',1);
start(chan)
pgrp = j1939ParameterGroup(db,'MyParameterGroup')
transmit(chan,pgrp)

Input Arguments

collapse all

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

J1939 parameter groups, specified as an array of ParameterGroup objects. Use thej1939ParameterGroup function to create and define the ParameterGroup objects.

Introduced in R2015b