主要内容

addEvent

R2026b

Add existing event to fault tree gate

Since R2026b

Description

addEvent(gate,event) adds the event event as an input to the gate gate in a Safety Analysis Manager fault tree.

example

Examples

collapse all

Create a fault tree document.

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

The new document contains one fault tree. Retrieve the FaultTree object from the document.

myFaultTree = myTreeDoc.FaultTrees(1);

Add five events to the fault tree document without assigning them as inputs to gates.

numberOfEvents = 5;
for n = 1:numberOfEvents
 myEvent(n) = createEvent(myTreeDoc);
end

Add the first event to the top-level gate.

addEvent(myTopGate,myEvent(1))

Input Arguments

collapse all

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

Event in the Safety Analysis Manager fault tree document, specified as an Event object.

Version History

Introduced in R2026b

See Also

Objects

Functions