Main Content

start

Set CAN channel online

Description

example

start(canch) starts the CAN channel canch on the CAN bus to send and receive messages. The CAN channel remains online until:

  • You call stop on this channel.

  • You clear the channel from the workspace.

Note

Before you can start a channel to transmit or receive CAN FD messages, you must configure its bus speed with configBusSpeed.

Examples

collapse all

Start a virtual device CAN channel.

canch = canChannel('MathWorks','Virtual 1',1);
start(canch)

Input Arguments

collapse all

CAN device channel, specified as a CAN channel object, that you want to start.

Example: canChannel('NI','CAN1')

Version History

Introduced in R2009a

See Also

Functions