Export Simulink model to Functional Mock-up Unit (FMU)
exportToFMU2CS( exports a model to a
Functional Mock-Up Unit (FMU) and creates a model,
contains a FMU Co-Simulation block with the original model. Model solver type must be a
Export the model,
vdp to a Functional Mock-Up
Open the model.
Set the solver type of the model to
set_param('vdp', 'SolverType', 'Fixed-step')
Export the model to a FMU. The model,
vdp_fmu.slx is created from
mdl— Name of Model
Name of the model to be exported to a Functional Mock-Up Unit
comma-separated pairs of
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
'CreateModelAfterGeneratingFMU'— Create model after export
By default, creates a model,
mdl_fmu.slx, that contains a FMU
Co-Simulation block with the original model. Create this model to check the integrity
of the exported FMU.
When set to
'off', does not create a model.
'AddIcon'— Block icon or exported FMU image
Block icon image, character vector specified as one of the following values:
'off' – No block icon image
'snapshot' – Use image of model as block icon
'filename' – An image file to be used as a block
'Generate32BitDLL'— Option to generate 32-bit DLL
Set the option to
'on' to support exporting Co-simulations of
FMUs with 32-bit binaries.