How can I change the "Set Point"? (Feedback)
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
How can I change the "Set Point"? (Feedback)
I assume "0" is the default? Can I set for example the "Set Point" to "1"
sys_cl = F*feedback(F*G1,C);

At Simulink I just change the constant value.

0 Kommentare
Akzeptierte Antwort
Stefan Raab
am 23 Apr. 2016
Hello,
I think your feedback might not be correct. I will abbreviate (X1-X2) as Y:
Y = G1(s) * (F(s)*W + C(s)*(R - Y)) ;
Y + G1(s)*C(s)*Y = G1(s)*F(s)*W + G1(s)*C(s)*R ;
Y = [G1(s)*F(s)]/[1+G1(s)*C(s)] * W + [G1(s)*C(s)]/[1+G1(s)*C(s)] * R ;
But if you apply your feedback structure, this will yield (with a general output U, which is NOT the one in you sketch)
Y = F(s)*G1(s) * (U - C(s)*Y) ;
Y + F(s)*G1(s)*C(s)*Y = F(s)*G1(s)*U ;
Y = [F(s)*G1(s)]/[1 + F(s)*G1(s)*C(s)] * U ;
Note that this transfer function does neither correspond to the transfer function from W -> Y nor the transfer function from R -> Y.
Regarding your "Set Point": If I understand you right, you want to have R also as input for your transfer function. Thus you could use a MIMO Transfer function:
web(fullfile(docroot, 'control/ug/mimo-transfer-function-models.html'))
In your case the tf would be a "row" vector tf, mapping from an input [W; R] to the output Y. It might be easier then to convert this into a state space model:
web(fullfile(docroot, 'control/ref/ss.html'))
Hope this helps.
Kind regards, Stefan
3 Kommentare
Stefan Raab
am 23 Apr. 2016
feedback can be comfortable if you want a simple feedback loop, but in your case it might be better to do as I told you, yes. ;)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Classical Control Design finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!