I am trying to co-simulate MATLAB and OMNeT++. For the co-simulation interface, I am using Ptolemy-VirGIL to connect the two models as FMUs. MATLAB export is quite easy but I cannot find a way to export my OMNeT++ model as an FMU. Kindly help.
Asked
Active
Viewed 191 times
1 Answers
0
OMNet++ does not offer export as FMU.
Export as FMU is neither mentioned in the OmNet++ Documentation nor does the OMNeT++ source code contain any meaningful mentions of FMU or FMI.
You can create your own wrapper or find someone who does it for you. Start out with a simple ModelExchange example from the FMU SDK, and put your OMNet++ model in there.
The SDK is a little extensive, in principal the only files that need to be adapted are (illustrated with the bouncingBall example):
- ./fmu20/src/models/bouncingBall/modelDescription_me.xml
- ./fmu20/src/models/bouncingBall/bouncingBall.c
In the XML file, you define your model's interface. The C file needs to be adapted to contain/call your OMNet++ model.

mklingn
- 151
- 3
-
I tried it but it is proving to b very difficult. Firstly to install VS 2015(older version which isn't directly available) for building FMU SDK files and then the Virtual Studio won't set up the environment variables, which are important for the batch files to make FMUs and simulators(for example, install.bat). Any suggestions?? – Rajat Pratap Feb 10 '20 at 04:03