Inputing the values of the external torque per time step to the TorqueActuator while CMC Simulation in Simulink
Posted: Wed Aug 12, 2020 6:00 am
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
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