How can I skip initial value on continuously updating closed loop system?
이전 댓글 표시
Our model is a closed loop system and we need one parameter that gets updated in each run, but for the initial step the loop output is zero and the parameter that we are updating, has a division hence making it infinity. Is there any way we can skip this initial value or update our parameter as zero for first run, and from the next step let it be updated as it is?
As of now, we have tried using delay and switch blocks. Using conditional(if) block hasn’t been helpful although it is one of the best ways to eliminate infinity issues.
댓글 수: 3
Mischa Kim
2014년 3월 12일
Can you attach the model?
shruthi
2014년 3월 12일

Since we cannot share the original model, here is a sample. The K value gets updated at each iteration but if the initial value of Y is 0, the infinity problem arises. Please suggest ways in which this can be rectified.
Chintan
2014년 3월 12일
답변 (2개)
nl2605
2014년 3월 12일
0 개 추천
You can specify the initial condition or value as 1 or whatever value you want for the integrator block. Just double click the integrator block and put in the value.
nl2605
2014년 3월 12일
0 개 추천
This should work. I hope so.
카테고리
도움말 센터 및 File Exchange에서 Simulink에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!