Hello,
Right now i want to do a CMC (Computed Muscle Control) simulation to get the needed muscle forces under consideration of external torque in simulink. So this external torque (as a function of the input kinematics) will help the osim model to tracking the given reference/input kinematics.
But i'm struggling to input the calculated external torque from my other simulink block to the CMC-block in simulink.
can anyone help me with it or give me a suggestion/an example to how to write the code to input the values of the calculated external torque per time step from my other simulink block to the CMC-block in simulink?
Here is the force set from my osim-model: ('Torque_from_CableActuator')
Best regards
Wahyu
Inputing the values of the external torque per time step to the TorqueActuator while CMC Simulation in Simulink
- Wahyu Kasendra Sugiarto
- Posts: 8
- Joined: Thu Apr 09, 2020 11:13 am
- Carmichael Ong
- Posts: 401
- Joined: Fri Feb 24, 2012 11:50 am
Re: Inputing the values of the external torque per time step to the TorqueActuator while CMC Simulation in Simulink
If you know the input kinematics ahead of time, and thus can calculate the values for your TorqueActuator for the whole simulation ahead of time, you could add a PrescribedController for your TorqueActuator and run CMC. If you are trying to do this between steps of CMC, I'm not aware of a way to do this since CMC is fairly rigid.