how to update parameters from simulink model to the workspace and use it again during the simulink running??

조회 수: 1 (최근 30일)
hello.... i have a simulink model with a Parameter dialogs to configure the parameters for the model and it will create three parameter structures in the base workspace.After run the simulation i need to make update to these structure and continue to use these parameters in the simulink with updataed version without stop the simulation.is there any way to do that??.......thanks

답변 (1개)

TAB
TAB 2018년 5월 28일
Simulink evaluates the parameters at compilation phase only. Once the simulation started, parameters changes in base workspace won't be visible to simulink.
If it is tunable parameter then you change its value from Matlab command line during simulation.
For example, to change the value of constant block during simulation, use command:
set_param('your_block_path', 'Value', '500')

카테고리

Help CenterFile Exchange에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by