How can I perform certain operations just after my Simulink model is updated?

1 view (last 30 days)
I am using the 'InitFcn' model callback to initialize data for my Simulink model before the diagram updates, i.e. before the model initialization is done. I want to perform certain functions on the model after the initialization has occurred. Is there a property to achieve this?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 27 Jun 2009
The ability to use a model callback that is executed after the Simulink diagram updates, i.e. after model initialization is currently not available.
As a workaround, use the 'StartFcn' model callback to perform those functions. The functions will be executed before the simulation of the model starts.

More Answers (0)

Products


Release

R13SP1

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!