FMU from MotionView to Simulink

Luca Cavagna_21621
Luca Cavagna_21621 Altair Community Member
edited March 15 in Community Q&A

Hello,

 

I am facing issues trying to couple MotionSolve and Simulink,

I created a very simple model which imposes the kinematics and simulink should provide aero forces and control forces.

The FMU is created succesfully and I can import it in Simulink in a FMU box. However, many times Simulink crushes, despite motionsolve is correctly called.

I do not know if there are some settings to fix in either motionsolve or Simulink. I am not sure about the time stepping for example.

In motionsolve there is no way to fix time step. I wonder what I shall do in Simulink. There is a coupling time step parameter in the FMU box and one time step in the general settings (variable or fixed time step?).

Maybe someone has more experience on this topic?

Best Answer

Answers

  • GTT Adam
    GTT Adam
    Altair Employee
    edited March 15 Answer ✓

    Hi Luca,

    A few things to try: 

     

    Hope this helps!

    Adam Reid

  • Praful
    Praful
    Altair Employee
    edited March 15

    Hello Luca - One way to try to force a fixed timestep for MotionSolve would be to set a lower Max step size in Motionsolve model lower than the timestep in simulink.

    As Adam recommended, you can try Activate to mimic the problem and see if you see the issue there also. If it does and if you can share the model, the crash can be investigated.

    Regards
    Praful

     

  • Luca Cavagna_21621
    Luca Cavagna_21621 Altair Community Member
    edited March 15

    Hello guys and thanks for the reply.

    Problem solved. I exported the FMU from Simulink and imported in MV.

    Meanwhile I am in touch with Mathworks to understand why.