How to change position of Coordinate Gravity when run the model
1 回表示 (過去 30 日間)
古いコメントを表示
Hi all,
The position of Coordinate Gravity (image below) is a constant.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/169282/image.png)
My project need this variable change value when run the model. Ex: with sample time = 0.1 t = 0, CG = [0 0 0] t = 0.1, CG = [1 0 -3] t = 0.2, CG = [2 2 -6] ...
Thanks
0 件のコメント
採用された回答
Birdman
2018 年 1 月 22 日
Hi dinh,
Simscape parameters can not be changed while the model is running. The following link explains the differences between Simulink and Simscape tunable parameters. Check it:
Especially, notice the following:
You can change the value of a Simulink tunable parameter while a simulation is running. Simscape run-time parameters are run-time configurable. You cannot change the value of a run-time configurable parameter during simulation. You can only change the value of a run-time configurable parameter when a simulation is stopped.
3 件のコメント
その他の回答 (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!