How can I perform certain operations just after my Simulink model is updated?
1 view (last 30 days)
Show older comments
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
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.
0 Comments
More Answers (0)
See Also
Categories
Find more on Model, Block, and Port Callbacks in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!