Dynamic Gui, Simmechanic, Simscape question
显示 更早的评论
Hi, I have an airplane I am modeling in simmechanic and I wanted to make the vehicle take off, turn, fly straight, then land.
Is there a way to make a dynamic gui that will control the rotation of multiple joints while the simulation is running?
Also i am using 2nd generation.
回答(1 个)
Sebastian Castro
2014-5-28
0 个投票
Sure there is! This blog post and this documentation page outline a few options for making interactive applications around Simulink models.
If you want to run multiple simulations with different joint values and collect the results, the above links are pretty useful. If you want to change parameters mid-simulation, you could look into using some blocks to pace your simulation by slowing it down so it runs in (close to) real time.
One thing to note: If you want to prescribe forces/torques to the joints, you can do that with any 2G release (R2012a and onwards). If you want to prescribe positions to the joints, this feature was released in R2014a for SimMechanics 2G.
1 个评论
ibrahim Kesici
2017-3-20
Mr. Sebastian. I am using 2nd generation and my model does not work in real time with mechanics explorer. I put a slider gain to my model and playing with it does not make any change in running time. Do you have any idea about the problem? Thanks.
类别
在 帮助中心 和 File Exchange 中查找有关 Model Preparation 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!