compile FMI C Code and create an FMU archive
string; full path to the generated .c file
(optional) equation(s) of the form name = value
list : If target is a Microsoft Windows DLL then a list containing the string of the batch file contents that can be used to compile the C code. Otherwise, the list is empty.
All of the option settings used in this function should be direct outputs of the FMIConnector[GenerateCode] function to avoid conflicts.
fmiTmpStr : string
Specifies the path to the generated FMI directory. The default value is currentdir().
removetmpdir : true or false
Specifies whether the generated temporary directory should be removed. The default value is true.
architecture : string; one of "32" or "64"
Specifies the architecture of the target binary.
pathVC : string
Specifies the path to the Visual C++ installation directory. This option is only used if compiling on a Windows platform. The default is the Visual C++ directory specified in the PATH environment variable.
includedirs : set(string)
Specifies a set of paths to include directories to be used during compilation of models with external library dependencies. The default value is an empty set.
MSVCtarget : string
Specifies the target argument for vcvarsall.bat (Visual C++ command that sets the path and environment variables for command-line builds according to the target architecture). This option is only used if compiling on a Windows platform. The default is "x86" for architecture = "32" and "x64" for architecture = "64", i.e., native 32-bit or 64-bit compilation is assumed. All other cross-compilation options, such as "x86_amd64" (x86 cross-compiler for x64 targets) or "amd64_x86" (x64 cross-compiler for x86 targets), must be explicitly specified via this option. Please consult your MSVC documentation as required target options vary with Microsoft Visual Studio versions.
removesrc : true or false
Specifies whether the generated source directory and its contents should be removed. Default is false.
fmiVersion : string; one of "FMI1.0" or "FMI2.0"
Specifies which version of the FMI standard will be generated. The default value is "FMI2.0".
fmiDistType : string; one of "DLL" or "SourceCode"
Specifies if the generated sources should be compiled into a dynamically linked library. If set to "SourceCode" then the FMU will contain source code only. The default value is "DLL".
The CreateArchive command compiles the generated FMI C code into a shared library (.so/.dll/.dylib) and creates an FMU archive.
FMU Distribution Notice
Download Help Document
What kind of issue would you like to report? (Optional)