主要内容

createTransferGate

R2026b

Add transfer gate to fault tree gate

Since R2026b

Description

transferGate = createTransferGate(gate) adds a transfer gate to the specified gate in the Safety Analysis Manager fault tree. You can use transfer gates that transfer to any gate. For more information, see Create Transfer Gates.

example

Examples

collapse all

Create a new fault tree document in the Safety Analysis Manager and get the FaultTree object.

myTreeDoc = safetyAnalysisMgr.newDocument("fault-tree");
myFaultTree = myTreeDoc.FaultTrees(1);

The new document contains one fault tree. Create another fault tree.

myNewTree = createFaultTree(myTreeDoc);

Add a transfer gate to the top-level gate of myFaultTree that transfers from the top-level gate of myNewTree.

topGate = myFaultTree.Gates(1);
newTopGate = myNewTree.Gates(1);
myTransferGate = createTransferGate(topGate);
myTransferGate.Gate = newTopGate;

Input Arguments

collapse all

Gate in the Safety Analysis Manager fault tree document, specified as a Gate object.

Output Arguments

collapse all

Transfer gate in the fault tree, returned as a TransferGate object.

Version History

Introduced in R2026b