Set Symmetric Difference VI

Owning Palette: Set VIs and Functions

Requires: Base Development System

Computes the symmetric difference of two sets.

Details  Example

 Add to the block diagram  Find on the palette
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 specifies the second set. This input must be the same data type as set 1. The default data type is a set of strings.
symmetric difference returns a set of elements that are included in either set 1 or set 2 but not both.

Set Symmetric Difference Details

The following figure illustrates how this VI computes the symmetric difference of two sets. The two circles represent the two sets. The green sections are the symmetric difference.

Example

Refer to the Set Collection - Word Counting VI in the labview\examples\Collections directory for an example of using the Set Symmetric Difference VI.

 Open example  Find related examples