Main Content

Fault Modeling

Define faults and their behaviors in Simulink® models

Use Simulink Fault Analyzer™ to model faults and conditionals. You can use the graphical interface or programmatic options to configure faults in models.


expand all

Simulink.fault.addConditionalAdd conditional to model (Since R2023b)
Simulink.fault.addFaultAdd fault to model (Since R2023b)
Simulink.fault.deleteConditionalDelete conditional from model (Since R2023b)
Simulink.fault.deleteFaultDelete faults from model element (Since R2023b)
Simulink.fault.findConditionalsRetrieve conditionals from model (Since R2023b)
Simulink.fault.findFaultedElementsRetrieve paths of model elements that have faults (Since R2023b)
Simulink.fault.findFaultsFind faults in model (Since R2023b)
Simulink.fault.getFaultModelsReturn fault models associated with model (Since R2023b)
Simulink.fault.librariesGet and register libraries containing fault behaviors (Since R2023b)
Simulink.fault.libraryBlocksGet fault subsystem blocks in libraries (Since R2023b)
Simulink.fault.saveSave fault information file (Since R2024a)
Simulink.fault.unregisterLibraryUnregister libraries containing fault behaviors (Since R2023b)
Simulink.fault.updateReferencesSynchronize model fault information files (Since R2023b)
addBehaviorAdd signal behavior to fault (Since R2023b)
deleteBehaviorDelete behavior associated with fault (Since R2023b)
getAssociatedModelRetrieve name of model fault (Since R2023b)
getBehaviorGet path of associated Fault Subsystem block (Since R2023b)
getFaultModelGet name of fault model (Since R2023b)
getFaultInfoFileGet name of fault information file (Since R2023b)
getSymbolsGet symbols in conditionals (Since R2023b)
getTriggeredFaultsReturn array of faults triggered by conditional (Since R2023b)
openBehaviorOpen fault behavior and fault model (Since R2023b)


FaultCreate or modify faults in models (Since R2023b)
ConditionalCreate or modify conditionals in models (Since R2023b)
SymbolCreate or modify symbols in conditionals (Since R2023b)


expand all

Fault InportCapture inlet signal for fault behaviors (Since R2023b)
Fault OutportOutput signals from fault behaviors (Since R2023b)
Fault SubsystemModel behaviors for fault injection (Since R2023b)