Execute code in Simulink prior to StartFcn?

4 Ansichten (letzte 30 Tage)
YoGabbaGabba
YoGabbaGabba am 20 Apr. 2015
Beantwortet: Sebastian Castro am 20 Apr. 2015
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)?

Antworten (1)

Sebastian Castro
Sebastian Castro am 20 Apr. 2015
Does the InitFcn callback do what you want? InitFcn will run during this model update phase.
- Sebastian

Kategorien

Mehr zu Model, Block, and Port Callbacks finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by