Main Content

openBehavior

Open fault behavior

Since R2023b

Description

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

example

Examples

collapse all

Open a model with a block that supports fault modeling.

openExample('simscape_shared/SimpleMotorArmatureWindingFaultExample')

Add a fault called myFault to the Armature winding model subelement in the DC Motor block.

myFault = Simulink.fault.addFault(...
"SimpleMotorArmatureWindingFault/DC Motor/Armature winding",...
Name="myFault");

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

addBehavior(myFault,"myBehaviorModel");

Open the fault behavior.

openBehavior(myFault)

Input Arguments

collapse all

Fault, specified as a Fault object.

Version History

Introduced in R2023b

See Also

Objects

Functions