Contenuto principale

getGate

R2026b

Retrieve gate with specified label from fault tree document

Since R2026b

Description

gate = getGate(faultTreeDocument,label) returns the gate 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 gate with the label myGate. Get the FaultTreeDocument object.

myTreeDoc = safetyAnalysisMgr.getOpenDocuments;

Retrieve the gate from the fault tree document that has the label myGateLabel.

myGate = getGate(myTreeDoc,"myGateLabel");

Input Arguments

collapse all

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

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

Data Types: char | string

Output Arguments

collapse all

Fault tree document gate, returned as a Gate object.

Version History

Introduced in R2026b