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

Generate FMI2 C code from plain .mo file

Generate FMI2 C code from plain .mo file

Hi all,

Is there a way I can use OMCompiler to generate FMI2 C code from a plain .mo file (without having to write a .mos file and call translateModelFMU) ?

Calling

Code:

omc --simCodeTarget=sfmi -s Model.mo

outputs a Model_FMI.cpp C++ code file exporting a FMI2 interface, but building it fails due to a missing sfmi_runtime.h that I can't find anywhere. I would like to do pretty much the same but for plain C code.


Thanks in advance.

Edited by: leonardojc - Jun-05-17 00:40:24
There are 0 guests and 0 other users also viewing this topic
You are here: