You can use Stateflow charts, MATLAB Function blocks, and Stateflow® Truth Tables in feedback loops in your model. You can also use these blocks with synchronous subsystems enabled by the State Control block. To prevent algebraic loop or synchronous semantic errors, apply these restrictions.
|Stateflow Chart||Use Moore charts to prevent an algebraic loop. In the Property
Inspector, set the State Machine Type to |
|MATLAB Function block|
Nondirect feedthrough semantics prevent algebraic loop errors by ensuring that outputs depend only on current state. To enable these semantics, clear the Allow direct feedthrough property check box.
If your block uses direct feedthrough, do not:
When you apply these restrictions, you allow the Simulink® solver to try to solve the algebraic loop.
When you apply these restrictions, you allow the Simulink solver to try to solve the algebraic loop.