- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » FMU to S-function
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
- Lala
- 32 Posts
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.
- adeas
- 454 Posts
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
- Lala
- 32 Posts
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » FMU to S-function