- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Integrate a model in a custom app
Integrate a model in a custom app
Integrate a model in a custom app
Hello,
I am working with openModelica recently.
I have designed a model in openModelica which works fine.
So now I want to export this model in a custom C++ app on which I will be able :
* to manage inputs of model at first time (for that I have unsuccessfully tried to take C code generated from openmodelica after simulation -> problem : linked with compiled libraries which limit my usage)
* secondly control model execution -> play/pause/stop model execution.
Please someone would has a proposal ?
Thanks in advance for your answers.
Stedy.
Re: Integrate a model in a custom app
Did you try exporting a source-code FMU? It doesn't depend on any external libraries... https://github.com/OpenModelica/OpenMod … ompile.mos
- sjoelund.se
- 1700 Posts
Re: Integrate a model in a custom app
It is also possible to use the OPC-UA interface to control a simulation.
- sjoelund.se
- 1700 Posts
Re: Integrate a model in a custom app
Thanks for your answer.
But I think it's possible to get generated code from openmodelica, alter it and make a dll for my custom C++ app.
I use Openmodelica v1.9.6.
My objectives :
* launch designed model in infinite loop so I can change inputs as I want
* control simulation from my custom app (play, pause, stop mechanism)
Could someone help me in this way ?
Concerning FMU export, I have tried without success => same philosophy as "code generation files".
Stedy.
Re: Integrate a model in a custom app
Thanks for your answer.
But I think it's possible to get generated code from openmodelica, alter it and make a dll for my custom C++ app.
I use Openmodelica v1.9.6.
My objectives :
* launch designed model in infinite loop so I can change inputs as I want
* control simulation from my custom app (play, pause, stop mechanism)
Could someone help me in this way ?
Concerning FMU export, I have tried without success => same philosophy as "code generation files".
Stedy.
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » Integrate a model in a custom app