CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
155 stars 50 forks source link

fmu exported from some simulink modules cannot be imported into simulink for use #470

Open yinyue01 opened 3 months ago

yinyue01 commented 3 months ago

A simple simulink model below : test

The model can export fmu, but the fmu cannot be imported into simulink for use. Matlab crashes during running the fmu model. crash

I have made more attempts and found that all the problematic FMUs code contain “sfun_discreteVariableDelay.c”. vs2017

Development environment configuration : FMIKit-Simulink-3.1 MATLAB 2021b

The test simulink model : test.zip

Maybe you can help me solve the problem. Thx