FMI export code generation template for 20-sim
Download the code generation template using the "Download ZIP" button on Github or using a "git clone"
- Extract the zip file
- Copy the folder StandaloneFMU to a location on your 20-sim PC.
- Open 20-sim
- Choose from the Menu: Tools | Options
- Choose Folders
- Choose C-Code Folders
- Add the folder you copied in step 2.
- To export an FMU, choose Tools | Real Time Toolbox | C-Code Generation The FMU export should now be visible in the list.
- For automated compilation of the .fmu, we currently rely on the availability of the Visual Studio 2010, 2013 or 2015 compiler. Any version Express, Community, Professional or Enterprise will work. However, for a x64 FMU DLL, you cannot use the Express edition since it does not contain a x64 compiler.
Note that the FMU can be compiled with gcc (including MinGW) too on Windows, Linux and MacOSX. You can find the Makefile in the root directory of the generated code.