FMIConnector - MapleSim Help

# Online Help

###### All Products    Maple    MapleSim

Home : Support : Online Help : MapleSim Toolboxes : MapleSim FMI Connector : FMIConnector Package : FMIConnector/CreateArchive

FMIConnector

 CreateArchive
 compile FMI C Code and create an FMU archive

 Calling Sequence CreateArchive(cFile)

Parameters

 cFile - string; full path to the generated .c file options - (optional) equation(s) of the form name = value

Returns

 • 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.

Options

 • 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.
 • 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".

Description

 • The CreateArchive command compiles the generated FMI C code into a shared library (.so/.dll/.dylib) and creates an FMU archive.

 See Also

## Was this information helpful?

 Please add your Comment (Optional) E-mail Address (Optional) What is ? This question helps us to combat spam