CATIA-Systems / FMIKit-Simulink

Import and export Functional Mock-up Units with Simulink
Other
161 stars 54 forks source link

Integer and boolean output port not managed correctly by FMIKit #466

Closed fnorlt closed 10 months ago

fnorlt commented 10 months ago

Hello, The FMU generation of a model containing boolean or integer type outputs leads to a fmu that cannot be exploited by FMPy or by Amesim.

In the simulink example model attached, the first output is of real type, the second of boolean type, and the last two of integer type.

When FMPy reads the generated fmu, this error appears:

image

The only way to get around this problem is to edit the fmu xml and add the "variabilty" parameter and assign it to "discrete" no workaround found via simulink

This seems to me to be a FMIKit issue

kind regards

Matlab version : R2020b FMIKit version : 3.1

workingWithFMIKit_Rlt.zip

fnorlt commented 10 months ago

Thank you !