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

Parameters

Returns

Options

Description

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. Default is "currentdir()".

• 

removetmpdir : true or false

  

Specifies whether the generated temporary directory should be removed. Default is true.

• 

architecture : one of the following: "32", "64"

  

Specifies the architecture of the target binary.

• 

pathVC : string

  

Specifies the path to the Visual C++ installation directory. Default is "C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC". This option is only used if compiling on a Windows platform.

• 

removesrc : true or false

  

Specifies whether the generated source directory and its contents should be removed. Default is false.

• 

fmiVersion : one of the following: "FMI1.0", "FMI2.0"

  

Specifies which version of the FMI standard will be generated.  Default is "FMI2.0".

• 

fmiDistType : 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. Default 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

FMIConnector

FMIConnector[GenerateCode]

MapleSim

 


Download Help Document

Was this information helpful?



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