FMU Export and Import

Introduction | Class Browser | Class Window | Graphical Views | Modelica Text View | Component Browser | Variable Views | Reliability View | Messages View | Kernel Command View | Documentation Center | Functional Mock-up Interface | Keyboard Shortcuts | Kernel Commands

SystemModeler supports:

This chapter describes the FMU export and import workflow.

FMI IN SYSTEMMODELER
FMI | Using an Imported FMU | FMI-Variable Naming

FMU Export

To export a class as an FMU, choose File Export FMU. This will open up the FMU Export dialog box.

1.gif

Exporting an FMU.

The FMU Export dialog box contains a set of export options for the FMU:

Classes can also be exported using the Class Browser. Right-click the name of the class and choose Export FMU from the popup menu.

FMU Import

To import an FMU, choose File Import FMU and select the FMU file. This will open up the Import FMU dialog with information about the selected FMU. It is also possible to trigger the import dialog by dragging and dropping the FMU anywhere on the main window in Model Center.

During the import, a wrapper model is created for the FMU. The wrapper model will mirror the variables and parameters in the FMU. The Options section of the FMU Import dialog allows control of which variables will be present in the created model, and how variable and parameter names in the FMU are translated to Modelica identifiers.

Content of the FMU Import dialog box:

2.gif

Importing an FMU.

For more information on the combination of Variable naming convention and Allow use of quoted Modelica identifiers for imported variables, as well as examples of name mangling related to Variables that need name mangling, see chapter FMIVariable Naming.

Clicking OK will import the FMU with the given options. The progress of the import can be followed from the Messages window at the bottom of Model Center, where all major steps in the import process are logged.

FMI IN SYSTEMMODELER
FMI | Using an Imported FMU | FMI-Variable Naming

Introduction | Class Browser | Class Window | Graphical Views | Modelica Text View | Component Browser | Variable Views | Reliability View | Messages View | Kernel Command View | Documentation Center | Functional Mock-up Interface | Keyboard Shortcuts | Kernel Commands