![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1373264/image.png)
In Simscape: How to change runtime of simulation and how to change name of blocks?
3 ビュー (過去 30 日間)
古いコメントを表示
1) I change the runtime from 1-1000, but the Results Explorer still just runs it for the default 10 seconds. How do I fix this? I already tried increasing timescale of plot, but it didn't run longer than 10 seconds.![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1364988/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1364988/image.png)
2) I named a block "Pre Tank (IL)", but in the results explorer it's just named "Tank". How do I change this? ![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1364993/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1364993/image.png)
0 件のコメント
採用された回答
Piyush Dubey
2023 年 5 月 3 日
編集済み: Piyush Dubey
2023 年 5 月 3 日
Hi,
1) The run time of the simulation model can be changed from the Simulation tab, under Simulate section. There the stop time can be changed which determines till what time should the simulation run.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1373264/image.png)
Details for which can be obtained in the following documentation: https://www.mathworks.com/help/simulink/gui/stoptime.html
2) Any changes in the name of block gets reflected throughout the model once the simulation has re-run with the new set of changes. Ensure that you have run the simulation model again after making necessary changes.
Re-running the model with the changes will reflect the changes throughout over the axes as well as the name of the block inside the results explorer.
Hope this helps!
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Run-Time Parameters についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!