Execute code in Simulink prior to StartFcn?

When the user clicks play on a Simulink model, I need to execute some code immediately. The StartFcn seems to do some compiling etc. prior to running. Can I execute code immediately after play (ie, before compiling, updating model, etc)?

Réponses (1)

Sebastian Castro
Sebastian Castro le 20 Avr 2015

0 votes

Does the InitFcn callback do what you want? InitFcn will run during this model update phase.
- Sebastian

Catégories

Community Treasure Hunt

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

Start Hunting!

Translated by