Cluster elements have a logical order unrelated to their position in the shell. The first object you place in the CLUSTER is element 0, the second is element 1, and so on. If you delete an element, the order adjusts automatically. The cluster order determines the order in which the elements appear as terminals on the Bundle and Unbundle functions on the BLOCK DIAGRAM. You can view and modify the cluster order by right-clicking the cluster border and selecting Reorder Controls In Cluster from the shortcut menu.
If you would like to Enrich your career with an Android certified professional, then visit Mindmajix - A Global online training platform: “LabVIEW training” Course. This course will help you to achieve excellence in this domain.
To wire clusters to each other, both clusters must have the same number of elements. Corresponding elements, determined by the cluster order, must have compatible data types. For example, if a double-precision floating-point numeric value in one cluster corresponds in the cluster order to a string in the another cluster, the wire on the block diagram appears broken and the VI does not run. If the numeric values are different representations, LabVIEW coerces them to the same representation. The below Figure shows the reordering of a cluster which contains a numeric control (Digital Control), a Boolean control (OK Button) and a string control. By clicking over the number displayed with a black background near the cluster element, we can change the order of the elements. Cluster and ARRAY elements are both ordered, you must unbundle all cluster elements at once or use the Unbundle By Name function to access specific cluster elements. Clusters also differ from arrays in that they are a fixed size. Like an array, a cluster is either a CONTROL OR AN INDICATOR.
The main cluster operations are bundle, unbundled, bundle by name and unbundle by name. Use the cluster functions to create and manipulate clusters. For example, you can perform tasks similar to the following:
The Bundle function assembles individual components into a single new cluster and allows you to replace elements in an existing order. The Unbundled function splits a cluster into its individual components. When it is required to operate on a few elements and not the entire cluster elements, you use the Bundle By Name function. They are referenced by names rather than by position. The Unbundle By Name function returns the cluster elements whose names are specified.
Stay updated with our newsletter, packed with Tutorials, Interview Questions, How-to's, Tips & Tricks, Latest Trends & Updates, and more ➤ Straight to your inbox!
|LabVIEW Training||Dec 02 to Dec 17||View Details|
|LabVIEW Training||Dec 05 to Dec 20||View Details|
|LabVIEW Training||Dec 09 to Dec 24||View Details|
|LabVIEW Training||Dec 12 to Dec 27||View Details|
I am Ruchitha, working as a content writer for MindMajix technologies. My writings focus on the latest technical software, tutorials, and innovations. I am also into research about AI and Neuromarketing. I am a media post-graduate from BCU – Birmingham, UK. Before, my writings focused on business articles on digital marketing and social media. You can connect with me on LinkedIn.
Copyright © 2013 - 2023 MindMajix Technologies