Reset integrator no initial condition in Simulink
조회 수: 46 (최근 30일)
이전 댓글 표시
Hi,
A reset controller uses an integrator which can reset itself. This can be implemented in Simulink using the 'External reset' option of the integrator element. The corresponding reset matrix can be implemented by showing the state port and by setting the Initial Condition Source to external.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168724/image.png)
In the image you see the an integrator, which resets to a partial value of the current state (through reset matrix R) when the input signal goes through zero. To implement the reset matrix R in the integrator, I have to set the Initial Condition Source to external. When I do this, I can no longer apply an initial condition.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/168726/image.png)
Is there some way around to apply an initial condition at the start of the simulation?
댓글 수: 3
답변 (1개)
Fangjun Jiang
2018년 1월 11일
I would insert a "Unit Delay" block after the "Gain" block and feed the output to "X0" port.
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 General Applications에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!