Execute code in Simulink prior to StartFcn?

조회 수: 1 (최근 30일)
YoGabbaGabba
YoGabbaGabba 2015년 4월 20일
답변: Sebastian Castro 2015년 4월 20일
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)?

답변 (1개)

Sebastian Castro
Sebastian Castro 2015년 4월 20일
Does the InitFcn callback do what you want? InitFcn will run during this model update phase.
- Sebastian

카테고리

Help CenterFile Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by