Simulink.fmuexport.ExportSimulinkProjectToFMU
Description
Simulink.fmuexport.ExportSimulinkProjectToFMU(
exports a project
,model
,Name,Value
)project
as a Functional Mockup Unit (FMU) and sets the
model
as the main interface model.
Examples
Export Model and Set FMU Icon
If the Simulink® model EngineGasDynamics.slx
exists in the
project root/models/
folder, use the following
command to export the FMU from project root:
project = slproject.getCurrentProject;... Simulink.fmuexport.ExportSimulinkProjectToFMU(project,'models/EngineGasDynamics.slx','-fmuname',fullfile(project.RootFolder,'EngineGasDynamics.fmu'),'-fmuicon',fullfile(project.RootFolder,'Simulink_Logo.png'))
Input Arguments
Version History
Introduced in R2018b