Set Union VI

Computes the union of two sets. The union is all elements that belong to either of the two sets.


icon

Inputs/Outputs

  • cset.png 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.

  • cset.png 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.

  • iset.png union

    union returns the combined set.

  • The following figure illustrates how this VI computes the union of two sets. The two circles represent the two sets. The green section is the union.

    Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Collections\Set Collection - Word Counting.vi