Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

FMU to S-function

FMU to S-function

Hello everyone,
I’m working on a specific model exchange between OpenModelica and Matlab/Simulink. I already read something about FMI (FMU) on internet but I didn’t find any tutorial how to sole that task. Does anyone have some tips for this problem?
Thanks,
Lala

Re: FMU to S-function

I suppose you are using OMEdit.

Create your model and then export it as an FMU. From the menu FMI->export FMU.

Adeel.

Re: FMU to S-function

First of all, thanks for replaying.
I already found this function in OMEdit and that’s why I want to try my models in Matlab/Simulink. But the question is that do I have to change the C code (prepare it for S-function) or OMEdit and FMI standard does all work for me? I know that FMI generates C code and FMU but can Simulink (S-function) read this code or there is need to do some changes? It means, if I don’t have to do any changes, only need is just to call S-function (C code) in Matlab/Simulink and simulation is going to work.
Many thanks,
Lala

There are 0 guests and 0 other users also viewing this topic