Main Content

Simulink Fault Controls

Use Simulink functions to model faults

You can use these Simulink fault controls in Simscape models to analyze, configure, and remove faults, behaviors, triggers, and conditionals.



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.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 (Since R2023b)
activateSet fault as active fault (Since R2023b)
Simulink.fault.enableEnable or disable faults on model elements (Since R2023b)
Simulink.fault.injectionEnable fault simulation for model (Since R2023b)
Simulink.fault.isEnabledDetermine whether model elements are enabled for fault injection (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)