Set Cartesian Product VI

Owning Palette: Set VIs and Functions

Requires: Base Development System

Computes the Cartesian product of two sets. The Cartesian product is a set of 2-element clusters which covers all possible combinations of elements from the two sets.

Details  

 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 accepts a set of any data type. The default data type is a set of strings.
Cartesian product returns a set of 2-element clusters which covers all possible combinations of elements in set 1 and set 2. For each cluster, the first element is from set 1 and the second element is from set 2.

Set Cartesian Product Details

The following front panel demonstrates how this VI computes the Cartesian product when set 1 is {Down, Up} and set 2 is {2, 3, 4}.