Simulink.fmuexport.ExportSimulinkProjectToFMU

Export project as Functional Mockup Unit (FMU)

Description

Simulink.fmuexport.ExportSimulinkProjectToFMU(project,model,Name,Value) exports a project as a Functional Mockup Unit (FMU) and sets the model as the main interface model.

Examples

Export Model and Set Logo

Export EngineGasDynamics.slx in the current project:

Simulink.fmuexport.ExportSimulinkProjectToFMU(slproject.getCurrentProject, 'EngineGasDynamics.slx', '-fmuname', 'EngineGasDynamics.fmu', '-fmuicon', 'Simulink_Logo.png’)

Input Arguments

collapse all

Data Types: string

Data Types: string

Name-Value Pair Arguments

Specify optional comma-separated pairs of Name,Value arguments. Name is the argument name and Value is the corresponding value. Name must appear inside quotes. You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.

Example:

If not specified, FMU is saved to current directory folder with the same name as the main model.

Data Types: string

The information is saved in modelDescription.xml inside FMU.

Data Types: string

The information is saved in modelDescription.xml inside FMU.

Data Types: string

The information is saved in modelDescription.xml inside FMU.

Data Types: string

The information is saved in modelDescription.xml inside FMU.

Data Types: string

The icon file must be in PNG format. If not specified, generated FMU has no icon file.

Data Types: string

Introduced in R2018b