co-simulation with MATLAB

Hi everyone,

I recently tried to run a DELMIA + MATLAB co-simulation using an FMU generated with the FMI++ toolbox but I'm facing issues. (https://github.com/fmipp/matlab-fmu )

 

I used this toolbox because natively, it is only possible to generate FMUs from Simulink models and for my use case, it is better to use a MATLAB script.

When associating the FMU to the Logic Controller, it is well recognized and I am able to map the IOs. However when I want to launch the simulation the initialization fails.

I defined a nominal task with a "wait inf", a Logic Controller with the linked fmu and a Controller with 2 IOs linked to the 2 IOs of my fmu. I am using the MinGW 8.1_64b compiler.

Has anyone tried to do this? Is there another way to make this connection?

 

thanks,

Cyril R