Model Settings / Configuration parameters updating using script

For the automated simulation purposes, I need to update Model Settings / Configuration parameters updating using script. Mainly Input and Start time, Stop time. Is there any option how to do it?

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2024년 2월 15일

0 개 추천

set_param(mdl,"StartTime","10","StopTime","40")
Hover your mouse over the property (e.g. Input), right click, select "What's this?". It will bring up a help page where you can find the programming property name. Then use get_param() and set_param().

댓글 수: 3

Thank you for your answer. Actually I was interested about the Inputs the most. Have you got any idea how to update them by the script?
set_param(mdl,"LoadExternalInput","on","ExternalInput","[t,u]")
thank you very much for your helpful anwer, it works as I expected

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

카테고리

도움말 센터File Exchange에서 Model, Block, and Port Callbacks에 대해 자세히 알아보기

질문:

2024년 2월 15일

댓글:

2024년 3월 7일

Community Treasure Hunt

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

Start Hunting!

Translated by