Integers in control loops
3 次查看(过去 30 天)
显示 更早的评论
Hi,
I am trying to use the Simulink's controller tuning feature, but it cannot seem to linearize the loop because of my rounding function (makes the controller effectively see '0'). The reason for my rounding function is because the controller must only output integers.
Is there any way to make the controller only output integers but of data type double?
Regards Mark
0 个评论
采纳的回答
Erman Korkut
2011-8-16
Hi Mark,
How are you rounding your controller output? If you are using the quantizer block, there is a checkbox for "treat gain when your are linearizing", make sure it is checked. If you use any other block (rounding function block in Math library, matlab fcn block etc.), you can always right-click on the block and select "Linear Analysis->Specify Linearization..." menu to set the linearization of the block to a certain value, such as gain of 1. You can even make the linearization depend on the input value if you choose to use configuration function for specifying linearization of the block. You can check the following for more information:
Regards, Erman Korkut
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Classical Control Design 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!