How to assign initial values to closed loops in simulink

22 views (last 30 days)
I want to build a closed loop system in simulink, but there is a problem that cannot be solved. As shown in the figure, the output of module A is used as the input of module B, the output of module B is used as the input of module C, and the output of module C is used as the input of module A. There is no interface to input the cyclic initial value. How can I solve the problem of setting the initial value

Accepted Answer

Fangjun Jiang
Fangjun Jiang on 17 Jan 2023
There are many blocks inside model A, B and C. Some of the blocks (e.g. an Integrator) have dialog parameter for initial value. Specify it or take the default value. As long as Simulink does not complain about algebraic loop, the closed-loop system is valid and you can run the simulation. Record and observe the value of those interface signals at time=0, they are the solved "initial value" if that is your concern. These "initial values" are automatically solved by Simulink based on available information.
If Simulink complains about algebraic loop, then you can use the IC block to specify the initial values for those signals that you know the initial value. see doc and examples

More Answers (0)

Products


Release

R2016a

Community Treasure Hunt

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

Start Hunting!