Owning Palette: Programming VIs and Functions
Use the Cluster, Class & Variant functions to create and manipulate clusters and LabVIEW classes, convert LabVIEW data to a format you can manipulate independent of data type, add attributes to the data, and convert variant data to LabVIEW data.
| Palette Object | Description |
|---|---|
| Array To Cluster | Converts a 1D array to a cluster of elements of the same type as the array elements. Right-click the function and select Cluster Size from the shortcut menu to set the number of elements in the cluster. |
| Build Cluster Array | Bundles each component input into a cluster and assembles all component clusters into an array of clusters. Each cluster contains a single component. |
| Bundle By Name | Replaces one or more cluster elements. This function refers to cluster elements by name instead of by their position in the cluster. |
| Bundle | Assembles a cluster from individual elements. |
| Call Parent Method | Calls the nearest ancestor implementation of a class method. You can use the Call Parent Method node only on the block diagram of a member VI that belongs to a class that inherits member VIs from an ancestor class. The child member VI must be a dynamic dispatching member VI and have the same name as the ancestor member VI. |
| Cluster Constant | Use this constant to supply a constant cluster value to the block diagram. |
| Cluster To Array | Converts a cluster of elements of the same data type to a 1D array of elements of the same data type. |
| Get LV Class Default Value | Returns the class data for the class whose path you wire to the path input. |
| Index & Bundle Cluster Array | Indexes a set of arrays and creates a cluster array in which the ith element contains the ith element of each input array. |
| LV Object Constant | The LabVIEW Object is the common ancestor data type for all LabVIEW classes. You can use the LabVIEW Object to create generic methods that can handle all LabVIEW class data types. |
| To More Generic Class | Typecasts a reference, such as a control or a type definition, to a more generic class in the inheritance hierarchy. |
| To More Specific Class | Typecasts a reference, such as a control or a type definition, to a more specific class in the inheritance hierarchy. |
| Unbundle By Name | Returns the cluster elements whose names you specify. |
| Unbundle | Splits a cluster into each of its individual elements. |
| Subpalette | Description |
|---|---|
| Variant Functions | Use the Variant functions to add, retrieve, and delete attributes in LabVIEW variants, as well as manipulate variants. |