Main Content

transmit

Send parameter groups via channel to J1939 bus

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.

Version History

Introduced in R2015b