FMU from MotionView to Simulink
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
-
Hi Luca,
A few things to try:
- Update MotionSolve to the most recent version (2023.1)
- Update Simulink to the most recent version
- Set the communication interval in Simulink to the output time step size in the MDL
- Try the cosimulation using Twin Activate instead of Simulink
Hope this helps!
Adam Reid
1
Answers
-
Hi Luca,
A few things to try:
- Update MotionSolve to the most recent version (2023.1)
- Update Simulink to the most recent version
- Set the communication interval in Simulink to the output time step size in the MDL
- Try the cosimulation using Twin Activate instead of Simulink
Hope this helps!
Adam Reid
1 -
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
Praful1 -
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.
1