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.

start

Set CAN channel online

Syntax

start(canch)

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')

See Also

Functions

Introduced in R2009a

Was this topic helpful?