This repository was archived by the owner on Apr 16, 2025. It is now read-only.
rtwsfcnfmi FMU containing an S-Function packed in MATLAB 2022b crashes MATLAB #475
Labels
RTWSFCN
This issue is related to the S-Function based FMU export
Uh oh!
There was an error while loading. Please reload this page.
Problem
FMUs packaged with rtwsfcnfmi.tlc from FMIKit 3.1 in MATLAB 2022b crash MATLAB when they are executed.
After a little debugging, I discovered that the error occurs in fmi2functions.c

fmi2SetReal()
:Replication
I created a test function to demonstrate the error state. Please see the zip file. Here's a snippet of the code:
fmikitErrorExamples.zip
Workaround
Using MATLAB 2021b to create the FMU seems to resolve the problem. Was there an S-Function API change between the versions?
System details:
The text was updated successfully, but these errors were encountered: