How to reset parameters in a simuink block when a certain condition is met in the simulink loop

조회 수: 2 (최근 30일)
Hi all,
Is there any way to reset parameter in a simulink block when a certain condition is met in the simulink loop???
Please advice, thank you very much.
Regards

채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 3월 12일
It is not possible to change a block parameter based on the value of another signal. However, it is possible to perform a "reset" for some blocks' states - for example, the Integrator block by using its reset port.
  댓글 수: 2
Teo Samuel
Teo Samuel 2012년 3월 13일
Dear Miss Govind,
Thanks again for your reply. So, it seems like impossible to reset a certain simulink block parameters during simulation, by the way the set_param command mentioned in the article you have shown must be performed in the command window right?
So, one last hope...is it possible to achieve the parameter reset by using relational operator blocks?? Someone suggested me to use that, I still need to figure it out, but before that just need to assure how high the possibility it could be achieved. Thank you very much.
Regards
Kaustubha Govind
Kaustubha Govind 2012년 3월 14일
Yes, the set_param command needs to be run from the MATLAB command window. As for the use of relational operator blocks to reset parameters - I'm not sure how this is done. Could you provide more information about how you plan to implement this suggestion?

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by