How can we Systematically pause Simulink model and update the variable and continue model from Matlab command line
3 次查看(过去 30 天)
显示 更早的评论
Hi Guys,
I have few querys , how can we update the variable during simulaton time. Here I have created simple model. Parameters "CtrlDwnValue" and "CtrlLftValue" are loaded into Matlab Wokspace. In this model, "CtrlDwnValue" is tunable parameter during runtime.
For Ex,
"CtrlDwnValue" is .29 upto T is 0.25 sec. which is represented in Fig-1., When T is 0.26 "CtrlDwnValue" is 0.35 which is represented in Fig-2.
Here I did manually paused the simulationa and changed this "CtrlDwnValue" parameter.
I wrote scipt to do above exampe, but i couldn;t able to succeed. Can any one help me how to do it?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218101/image.jpeg)
Thanks in Advance !!!
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218102/image.jpeg)
Fig-1
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/218103/image.jpeg)
Fig-2
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model, Block, and Port Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!