필터 지우기
필터 지우기

Varying Parameter Automatically

조회 수: 1 (최근 30일)
Alice Chin
Alice Chin 2011년 10월 16일
How to auto input the values of controller gain Kc, integral time τI, Derivative time τD of PID controller parameter when values of process gain Kp, time constant τ and time delay Ѳ are varying.
For example, I want to vary the parameter Kp, τ and Ѳ of the transfer function from 1-10 for each parameter automatically by using Cohen Coon tuning rule.

답변 (1개)

Ashikur
Ashikur 2011년 10월 17일
%% Are you using simulink model? you can sweep using a loop.
%% For example 'kp' is your model parameter and named as 'kp'
open_system('your_system')
kpSweep = 1:diff:10;
for i = 1:length(kpSweep)
kp = kpSweep(i);
[out params] = sim('your_system');
end

카테고리

Help CenterFile Exchange에서 PID Controller Tuning에 대해 자세히 알아보기

태그

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by