Documentation

This is machine translation

Translated by Microsoft
Mouse over text to see original. Click the button below to return to the English verison of the page.

MessageReceivedFcn

Specify function to run

Description

Configure MessageReceivedFcn as a callback function to run a character vector expression, a function handle, or a cell array when a specified number of messages are available.

The MessageReceivedFcnCount property defines the number of messages available before the configured MessageReceivedFcn runs.

Characteristics

Usage

CAN channel

Read only

Never

Data type

Callback function

Values

The default value is an empty character vector. You can specify the name of a callback function that you want to run when the specified number of messages are available.

Examples

expand all

Specify the callback function to execute.

canch.MessageReceivedFcn = @Myfunction;

Related Examples

Was this topic helpful?