Owning Palette: Collection VIs and Functions
Requires: Base Development System. This topic might not match its corresponding palette in LabVIEW depending on your operating system, licensed product(s), and target.
Use the Set VIs and functions to create and manipulate sets.
Palette Object | Description |
---|---|
Build Set | Creates a set from the input elements. Duplicate elements appear only once in the resulting set. |
Collection Size | Returns the number of elements or entries in a collection. |
Convert Set To Array | Places the code that you can use to convert a set to an array. |
Element of Set? | Returns whether an element is a member of a set. |
Empty Collection? | Returns TRUE if the input collection contains zero elements or entries. |
Insert Into Set | Inserts an element into a set. |
Read Set Max & Min | Returns the maximum and minimum elements in a set. |
Remove From Set | Removes an element from a set. |
Set Cartesian Product | 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. |
Set Constant | Represents a set on the block diagram.
You cannot modify the embedded data in a set interactively or programmatically. You can update set data only as a whole through operations such as writing to the set front panel terminal or right-clicking the set and selecting Data Operations»Copy Data or Data Operations»Paste Data. |
Set Difference | Computes the difference of two sets. The difference is the elements from the first set that are not included in the second set. |
Set Intersection | Computes the intersection of two sets. The intersection is all the elements that belong to both sets. |
Set Symmetric Difference | Computes the symmetric difference of two sets. |
Set Union | Computes the union of two sets. The union is all elements that belong to either of the two sets. |