I'm getting the following error how can I fix it
6 views (last 30 days)
Rishabh Mishra on 24 Dec 2020
Based on my understanding of the model, the error occurs when execution of the model starts. At first time step, t = 0, the sum block requires 2 inputs. The input coming from the Mux block is calculated from output given by the sum block itself, this creates a kind of loop where output of sum block depends upon input given to it and that causes the error to be reported.
To rectify this issue, Use an Initial condition block after the Mux & before the Sum block.
Hope this helps.