Execute code in Simulink prior to StartFcn?

1 visualización (últimos 30 días)
YoGabbaGabba
YoGabbaGabba el 20 de Abr. de 2015
Respondida: Sebastian Castro el 20 de Abr. de 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)?

Respuestas (1)

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

Categorías

Más información sobre Model, Block, and Port Callbacks en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by