Set Intersection VI
- Updated2025-07-30
- 2 minute(s) read
Computes the intersection of two sets. The intersection is all the elements that belong to both sets.

Inputs/Outputs
set 1
—
set 1 specifies the first set. This input accepts a set of any data type. The default data type is a set of strings.
set 2
—
set 2 specifies the second set. This input must be the same data type as set 1. The default data type is a set of strings.
intersection
—
intersection returns a set with the duplicate elements from the two input sets. |
The following figure illustrates how this VI computes the intersection of two sets. The two circles represent the two sets. The green section is the intersection.
Examples
Refer to the following example files included with LabVIEW.
- labview\examples\Collections\Set Collection - Word Counting.vi
set 1
—
intersection
—