initial condition of PID-controller via switch
조회 수: 3 (최근 30일)
이전 댓글 표시
I am using a switch to set the initial condition of my PID-controller. So if a certain constant has one as a value, I want the initial value to be lower. However the switch lets one single value through before the value goes down and the PID-controller uses this initial value and not the whole rest that is lower. I also tried an if-function, but that just does the same thing.
Is there a way to use the second time-value?
댓글 수: 0
답변 (1개)
Nitin Kapgate
2021년 1월 13일
You can use the combination of "Clock", "Relational Operator" and "Multiport Switch" blocks in Simulink to get the desired functionality.
The "Clock" block displays and provides simulation time.
The "Relational Operator" performs specified relational operation on inputs (output of Clock and Constant blocks in your case).
With "Multiport Switch", you can select output signal based on control signal (output of relational operator ijn your case).
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Sources에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!