PID controller without using Simulink
조회 수: 3 (최근 30일)
이전 댓글 표시
Hello everyone!
Is it possible to create a PID controller on Matlab without using Simulink?
I'd like to set up a PID controller in a throttle valve present in a water system, but without using Simulink.
Can anybody help me, please?
Thank you
Ful
댓글 수: 0
답변 (1개)
Fangjun Jiang
2021년 4월 26일
"doc pid" or look at the examples in "doc connect"
댓글 수: 2
Fangjun Jiang
2021년 4월 26일
Run this. It's all in MATLAB, no Simulink.
C = pid(2,1);
C.u = 'e';
C.y = 'u';
G = zpk([],[-1,-1],1);
G.u = 'u';
G.y = 'y';
Sum = sumblk('e = r - y');
T = connect(G,C,Sum,'r','y');
step(T);
참고 항목
카테고리
Help Center 및 File Exchange에서 PID Controller Tuning에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!