Should I use system update block or RTW S-function?

I want to add a new coding after my MPC controller to do some parameter updating. So, should I use system update block or RTW S-function to implement my update coding?
Where can I find tutorial on the use of custom code system update?

 採用された回答

Kaustubha Govind
Kaustubha Govind 2012 年 3 月 6 日

0 投票

Do you mean that you want to update the parameter value during execution? I don't think this is possible, because you are trying to use parameters as signals. See http://blogs.mathworks.com/seth/2011/03/08/how-do-i-change-a-block-parameter-based-on-the-output-of-another-block/

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeModel Predictive Control Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by