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.

Block Callbacks

Specify Block Callbacks

  1. Open the Property Inspector. Select View > Property Inspector.

  2. Select the block whose callback you want to specify. In the Properties tab of the Property Inspector, in the Callbacks section, select the callback you want to define.

  3. In the box, enter the functions you want the callback to perform.

To specify a block callback programmatically, use set_param to assign MATLAB® code to the block callback parameter.

Block Callback Parameters

If a block callback executes before or after a modeling action takes place, that callback occurs immediately before or after the action.

 Block Opening Callback Parameters

 Block Editing Callback Parameters

 Block Compilation and Simulation Callback Parameters

 Block Saving and Closing Callback Parameters

 Subsystem Block Callback Parameters

Related Topics

Was this topic helpful?