Simulink.fault.exportEmbeddedModel
Syntax
Description
exports a version of the model, newModelHandle
= Simulink.fault.exportEmbeddedModel(model
,newModel
,saveFolder
)model
, that contains embedded faults,
and saves the model with the name newModel
, in the folder
saveFolder
. The function exports only the active faults in the model.
When you create a fault-embedded model by using this function, the function copies Simscape™ blocks and their faults as-is.
For more information on exporting models that have embedded faults, see Create Fault-Embedded Models.
exports a version of the model that has embedded faults and deletes the existing content in
the folder based on the value, newModelHandle
= Simulink.fault.exportEmbeddedModel(model
,newModel
,saveFolder
,Overwrite=value
)value
.
Examples
Input Arguments
Output Arguments
Limitations
This function is unable to export active faults that have behavior that contains Fault Data Inport blocks.
This function converts active faults that use a conditional trigger into manually triggered faults.
If your original model contains links that you create by using Requirements Toolbox™, the generated model does not contain these links.
Version History
Introduced in R2025a