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.

Model, Block, and Port Callbacks

Execute code for modeling events such as opening a model

Functions

set_param Set system and block parameter values
get_param Get parameter names and values
getCallbackAnnotation Get information about annotation

Classes

Simulink.Annotation Specify properties of model annotation

Examples and How To

Model Callbacks

Specify MATLAB® code that executes at certain action points for models, for example after the model loads or when you save it.

Block Callbacks

Set block callbacks that execute when blocks are loaded, opened, or edited.

Port Callbacks

Set callbacks on input and output ports that execute every time the connectivity of these ports changes.

Callback Tracing

Use callback tracing to determine the callbacks that Simulink® invokes.

Concepts

Callbacks for Customized Model Behavior

How to use callbacks to customize a model.

Was this topic helpful?