主要内容

getFailureModel

R2026b

Retrieve failure model with specified label from fault tree document

Since R2026b

Description

failureModel = getFailureModel(faultTreeDocument,label) returns the failure model contained in the fault tree document, faultTreeDocument, that has the label, label.

example

Examples

collapse all

Suppose you have an open fault tree document in the Safety Analysis Manager that has a failure model with the label myFailureModelName. Get the FaultTreeDocument object.

myTreeDoc = safetyAnalysisMgr.getOpenDocuments;

Retrieve the failure model from the fault tree document that has the label myFailureModelName.

myFailureModel = getFailureModel(myTreeDoc,"myFailureModelName");

Input Arguments

collapse all

Fault tree document in the Safety Analysis Manager, specified as a FaultTreeDocument object.

Label of the failure model, specified as a string scalar or character vector.

Data Types: string | char

Output Arguments

collapse all

Fault tree document failure model, returned as a FailureModel object.

Version History

Introduced in R2026b