Main Content

getFaultInfoFile

Get name of fault information file

Since R2023b

Description

example

name = getFaultInfoFile(fault) returns the name of the fault information file associated with 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");

Retrieve the name of the fault information file associated with fault.

myInfoFile = getFaultInfoFile(myFault);

Input Arguments

collapse all

Fault, specified as a Fault object.

Output Arguments

collapse all

Name of the fault information file associated with the fault, returned as a character vector.

Version History

Introduced in R2023b

See Also

Objects

Functions