Is there a way to stop Simulink from going through a function block after the first time during a Simulation

조회 수: 2 (최근 30일)
Hello,
I am trying to run a model in Simulink where I set some constant variables with values in the top heiarchy using MatLAB Function blocks. As the simulation continues through all of my blocks it goes back to the beginning function block and redefines everything. I am wondering if there is a way to run through the function block once and then ignore it as the simulation continues. Any help and/or advice on this matter would be greatly appreciated. Thank you!

채택된 답변

Azzi Abdelmalek
Azzi Abdelmalek 2013년 6월 17일
You can use enabled-subsystems

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by