主要内容

Create Fault Tree Gates

R2026b
Since R2026b

In fault tree documents, gates calculate failure properties from input events and gates. After calculating the failure properties, they propagate the calculated properties up to the top-level gate. Failure properties include the probability, also known as unavailability, and the failure frequency. The type of gate determines the calculations that the gate performs.

Gates can use events and other gates as inputs. You can connect gates and events directly to the input of a gate, or use transfer gates to use another gate in the fault tree document as an input.

Add Gate to Fault Tree

To add a gate to a fault tree:

  1. Open the Safety Analysis Manager. In MATLAB® or Simulink®, in the Apps tab, click Safety Analysis Manager.

  2. Create or open a fault tree document.

    • To create a new document, click New > Fault Tree Document.

    • To open an existing document, click Open and select the document.

  3. Select a gate. New fault tree documents contain one fault tree, which contains only one top-level gate.

  4. In the Tree section, click Or and select the gate type.

You can add these gate types:

Gate Type SymbolGate TypeDescription

ORCalculates the union of the input unavailabilities and frequencies.

ANDCalculates the intersection of the input unavailabilities and frequencies.

NOTCalculates the probability that an input does not occur. For example, if the input probability is 1, the not gate returns a probability of 0. You can specify only one input to this gate.

Exclusive ORCalculates the probability that only one event occurs. You can specify only two inputs to this gate.

Voting AlgorithmCalculates the probability that the specified number of the inputs or more occurs.

Copy Gates

When you copy and paste gates, the new gate retains the properties of the original gate, but has a new name. For more information, see Copy Fault Tree Artifacts.

Define Gate Properties

To view the properties of a gate, click the gate. The properties appear in the Properties pane.

The Properties pane for an or gate. The event has a name GATE1 and is an or gate, as listed in the Type property. The Description property is empty and the Compute Properties property is cleared.

You can also change the gate label or enter a description by using the Label and Description properties, respectively. You can change the type of gate by using the Type property. For voting gates, you can also specify the number of inputs by setting k to a positive integer.

By default, the Safety Analysis Manager calculates the failure properties only for the top-level gate and events. To calculate the failure properties for the selected gate, select Compute Properties. For more information about the failure properties, see Define Event Properties and Quantitative Results.

View All Gates in Fault Tree Document

You can view all of the gates in the fault tree document and their properties in the Artifacts pane. To open the pane, click Artifacts at the bottom of the Safety Analysis Manager. To view the gates in the fault tree, set the drop-down list in the top-left corner to Gates.

The Artifacts pane title is in white text and has a blue highlight. The image has a cursor pointed to a list. The value Gates is selected. Several event names are obscured by the drop down.

To view the location of the gate in your fault tree, select the gate and click the Highlight gate in tree button .

To filter the gates, enter a term in the Search box. You can use the drop-down list to filter the results based on the specified property. For checkbox columns, enter true or false to filter the results.

You can select multiple gates by pressing Shift and clicking the artifacts. Selecting one gate displays the properties in the Properties pane.

By default, the Artifacts pane lists the gates by order of their creation. To sort the gates alphabetically, point to the right side of a column and click. You can sort alphabetically in ascending or descending order.

Create Transfer Gates

Transfer gates can use another gate in the fault tree as the source of their input data. Use transfer gates when you cannot connect a gate or an event directly to a gate or if you want to connect separate fault trees to other fault trees.

To add a transfer gate to a selected gate:

  1. In a fault tree, select a gate.

  2. In the toolstrip, in the Tree section, click Transfer In.

The transfer gate icon indicates a transfer gate. When you select the gate, the Properties pane displays the properties.

The Properties pane for an or gate. The event has a name GATE1 and is an or gate, as listed in the Type property. The Description property is empty and the Compute Properties property is cleared.

To define the source of the input data, set the Gate property. You can select gates in the same or a different fault tree. The transfer gate icon indicates that a gate outputs its data to a transfer gate.

A gate that feeds data to a transfer gate. The gate is an OR gate, and the transfer gate icon is attached to the right of the OR gate icon.

Note

If a transfer gate creates a circular logic loop or logical redundancy, the Safety Analysis Manager displays an error.

Convert Gates and Attached Artifacts to Standalone Trees

You can convert a gate and its attached artifacts into a separate fault tree by converting the gate to a transfer gate. To convert a gate into a transfer gate, right-click the gate and click Convert to tree. The fault tree replaces the gate with a transfer gate.

View Transfer Gate Data Sources

A gate can transfer data to multiple transfer gates. To view the transfer gates that use the gate as a data source:

  1. Select the gate.

  2. In the Properties pane, expand the Dependencies section.

The Dependencies section. The gate labeled GATE2 transfers to two other gates, GATE and GATE3. The gates that receive the transfer gate are on the left, and the input gate is on the right.

See Also

Topics