Main Content

getFaultInfoFile

Get name of fault information file

Since R2023b

Description

name = getFaultInfoFile(fault) returns the name of the fault information file associated with the fault, fault.

example

Examples

collapse all

Open a model with a block that supports fault modeling.

openExample('simscape_shared/SimpleMotorArmatureWindingFaultExample')

Add a fault to the DC Motor block.

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

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

myInfoFile = getFaultInfoFile(myFault)
myInfoFile = getFaultInfoFile(myFault)

myInfoFile =

    'SimpleMotorArmatureWindingFault_faultInfo.xml'

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