This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Include Functional Mockup Unit (FMU) in model

  • Library:
  • Simulink Extras / FMU Import


The FMU block imports existing functional mockup units (FMUs) into Simulink®. The block automatically selects one of these FMU mode based on the existing FMU you want to import:

  • Co-Simulation — Integrate FMUs that implement an (Functional Mock-up Interface) (FMI) Co-Simulation interface. These FMUs may contain local solvers that are used for tool coupling.

  • Model Exchange — Integrate FMUs that implement an FMI Model Exchange interface. These FMUs do not contain local solvers. Instead, they inherit solvers from Simulink.

This block supports FMI versions 1.0 and 2.0. For FMI version 2.0, if your FMU contains both Co-Simulation and Model Exchange elements, the block detects them and prompts you to select the mode you want the block to operate in.

To use this block, you must first have an existing FMU, exported from another tool or authored in C language.


Output Arguments

expand all

Placeholder port that produces no output as is.


expand all

Specify the name of an FMU, with or without the file extension. This entry is case sensitive. The FMU must exist on the MATLAB® path.

To specify an FMU name, enter the name in the FMU name text box.

When you click OK, the block creates an /slprj/_fmu/unique_ID folder with the unpacked files and the file hierarchy intact.

Specify the step size interval between co-simulation time instants. To inherit the sample time, set this parameter to -1. For more information, see Specify Sample Time.

See Also

External Websites

Introduced in R2017b

Was this topic helpful?