Add a logical AND or OR gate to a Pipeline
- Last UpdatedFeb 12, 2024
- 2 minute read
Use a Logical AND OR Gates block to add a logical AND or OR gate to your Pipeline. This allows you to consolidate multiple branches of your Pipeline into a single decision on whether an anomaly occurs. This can be especially useful if you plan to send data to AVEVA Insight and want to view a single tag value for anomaly detection based on the logic that you set up in the Pipeline.
The input to a Logical AND OR Gates block is:
-
The output of any anomaly detection block (Anomaly Classifier, SVM Prediction, or Statistical Prediction).
-
The output of another Logical AND OR Gates block.
You can connect the output port of the Logical AND OR Gates block only to the input port of another Logical AND OR Gates.
To add a logical AND or OR gate
-
On the Block Definitions toolbar, select Prediction.
The Prediction list expands.
-
Drag a Logical AND OR Gates block onto the Canvas.

-
Connect the block to other blocks on the Canvas as needed.
-
Select the Logical AND OR Gates block on the Canvas.
-
Right-click the block, and then select Properties.

The Properties side sheet appears on the right side of the screen.

-
In the Gate logic area, select one of the following.
-
AND – Both Boolean inputs to the block must be true to produce an output of true.
-
OR – Only one of the Boolean inputs to the block must be true to produce an output of true.
-
-
Select Apply Changes.
The preview image for the block updates on both the Properties side sheet and the Canvas.