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 Exchange에서 Code Generation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by