Dynamic Gui, Simmechanic, Simscape question

1 view (last 30 days)
Stephanie
Stephanie on 17 Apr 2014
Commented: ibrahim Kesici on 20 Mar 2017
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.

Answers (1)

Sebastian Castro
Sebastian Castro on 28 May 2014
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 Comment
ibrahim Kesici
ibrahim Kesici on 20 Mar 2017
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.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!