hexagon logo

ADAMS/Simulink Cosimulation: How to deactivate a motion or joint in ADAMS during a cosimulation?

Hello,
 
I'm running an ADAMS/Simulink Cosimulation and would like to deactivate a motion or joint after a set time.
 
Typically I do this in ADAMS through the simulation script "deactivate" command but can't find a way to do this during a cosimulation.
 
Any suggestions would be a great help.
joseph.
Parents
  • Replace the joint with one or more GCON. There are documentation on which equations are needed to replicate each joint.
    Then you have to add a turn-off signal to the equation. For example:
    fun=IF(VARVAL(turn_off):1,1,0)*(std_equation)
    Now this joint will be active as long as the solver variable turn_off is negative or zero and will deactivate when the variable is positive.
    Now you just have to define the right function for turn_off. For example
    -10+time
    will turn off the joint when time is greater than 10.
     
     
     
Reply
  • Replace the joint with one or more GCON. There are documentation on which equations are needed to replicate each joint.
    Then you have to add a turn-off signal to the equation. For example:
    fun=IF(VARVAL(turn_off):1,1,0)*(std_equation)
    Now this joint will be active as long as the solver variable turn_off is negative or zero and will deactivate when the variable is positive.
    Now you just have to define the right function for turn_off. For example
    -10+time
    will turn off the joint when time is greater than 10.
     
     
     
Children
No Data