Main Content

openBehavior

Open fault behavior and fault model

Since R2023b

Description

example

openBehavior(fault) opens the fault behavior and the fault model assigned to the fault, fault.

Examples

collapse all

Open the fault_analyzer_intro model.

openExample('faultanalyzer/FaultAnalyzerIntroExample')

Add a fault to the Sine Wave block output port.

myFault = Simulink.fault.addFault(...
"fault_analyzer_intro/Sine Wave/Outport/1");

Assign noise behavior to the fault and store the behavior in a fault model named myBehaviorModel on the path.

addBehavior(myFault,"myBehaviorModel",...
FaultBehavior="mwfaultlib/Add Noise");

Open the fault behavior and the associated fault model.

openBehavior(myFault)

Input Arguments

collapse all

Fault, specified as a Fault object.

Version History

Introduced in R2023b