フィルターのクリア

Overshoot problem with P-controller

1 回表示 (過去 30 日間)
Zoltan
Zoltan 2013 年 3 月 26 日
Hi, I have a simulink model for a p-controller. I have a microcontroller in the loop which acts as the p-controller. It gets the error(between setpoint and output) encoded in ASCII, which i decode in mikroPascal, multiply with the gain K, and send back to simulink. If i use a small gain and there is no overshoot, then it works fine. If there is overshoot, the output value will decrease until minus infinity. I used the discrete transfer function of (1/s^2+2s+1)
This is how it looks like: http://i46.tinypic.com/k1tmr6.png
The 2 gain blocks before and after the main block are valued *1000 and 1/1000 A model which works: http://i50.tinypic.com/r8wopd.png Any ideas why it has a problem with overshoot?
  7 件のコメント
Zoltan
Zoltan 2013 年 4 月 11 日
So here is the scope with 3 signals:
input_main -> the input signal of the 'main' block(yes, the mikroPascal comes in here), and in fact, its the error (error = actual value - setpoint)
output_main -> outputs the error signal multiplied by Kp (mikroPascal program does this)
final -> plant output
Zoltan
Zoltan 2013 年 4 月 12 日
This problem has been solved. Anyways, thanks for the help.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeClassical Control Design についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by