Skip to Main Content Skip to Search
Product Documentation

MessageReceivedFcn - Specify function to run

Description

Configure MessageReceivedFcn as a callback function to run a string 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 string. You can specify the name of a callback function that you want to run when the specified number of messages are available.

Examples

canch.MessageReceivedFcn = @Myfunction

You can also use the set function to set the values of this property.

See Also

Functions

canChannel, set

Properties

MessageReceivedFcnCount, MessagesAvailable

  


Recommended Products

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