This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materials including this page, select Japan from the country navigator on the bottom of this page.


Specify function to run


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.



CAN channel

Read only


Data type

Callback function


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.


expand all

Specify the callback function to execute.

canch.MessageReceivedFcn = @Myfunction;
Was this topic helpful?