Main Content

getTriggeredFaults

Return array of faults triggered by conditional

Since R2023b

Description

fault = getTriggeredFaults(conditional) returns the faults that use the conditional conditional as the trigger.

example

Examples

collapse all

Open the fault_conditional_exp model in the Investigate an Example Model with a Conditional example.

openExample('faultanalyzer/ConditionalExample')
mdl = "fault_conditional_exp";
open_system(mdl);

Find the conditional in the model.

myConditional = Simulink.fault.findConditionals(mdl);

Find the fault that uses the conditional.

myFault = getTriggeredFaults(myConditional);

Input Arguments

collapse all

Conditional assigned to the faults in a model, specified as a Conditional object.

Output Arguments

collapse all

Faults in the model that use the conditional as a trigger, returned as a Fault object array.

Version History

Introduced in R2023b