How to change position of Coordinate Gravity when run the model

3 visualizaciones (últimos 30 días)
tran
tran el 22 de En. de 2018
Editada: tran el 25 de En. de 2018
Hi all,
The position of Coordinate Gravity (image below) is a constant.
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

Respuesta aceptada

Birdman
Birdman el 22 de En. de 2018
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 comentarios
Birdman
Birdman el 22 de En. de 2018
Well, it is possible theoretically, but I doubt its efficiency.
tran
tran el 25 de En. de 2018
Editada: tran el 25 de En. de 2018
Thanks for help, I try using:
(1) Stop Simulation Block to change coordinate of gravity. But the simulation not continue. It run again at t = 0. (2) Press pause button in simulation window. But it also can not permit to change value.
I need change coordinate gravity because the model rotate with rotation_center is coordinate of gravity. Final, I solving the problem by rotation matrix. Again, Thanks so much :D

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by