| Contents | Index |
transmitPeriodic(canch, msg, 'On', period)
transmitPeriodic(canch, msg, 'Off')
transmitPeriodic(canch, msg, 'On', period) enables periodic transmit of the message, msg, on the channel, canch, to transmit at the specified period, period.
transmitPeriodic(canch, msg, 'Off') disables periodic transmit of the message, msg, on the channel, canch.
You can enable and disable periodic transmit even when the channel is running. This functionality allows you to make changes to the state of the channel without stopping the channel.
Construct a CAN channel and configure a message on the channel:
canch = canChannel('Vector', 'Virtual 1', 1);
msg = canMessage(500, false, 4);
Enable the message for periodic transmit. Set the period value to 1 sec, start the channel, and update the data in the message you want to send periodically:
transmitPeriodic(canch, msg, 'On', 1); start(canch); msg.Data = [1 2 3 4];
canChannel | canMessage | transmitConfiguration | transmitEvent

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |