Cluster

MGI Get Cluster Elements

This VI was created for use with the Read/Write Anything VIs. It breaks a cluster up into its individual elements and passes the elements out in an array of variants.

MGI Get Cluster Index

This VI returns the tabbing order index of the element or subelement in Cluster In named Name. A -1 is returned if the element is not found. What Index means depends on Mode: Include all elements and subelements: recurses all clusters and subclusters and increments for each cluster or any other data type. Index returns the element's order among all elements, no matter the level. First level only: only looks at the elements of Cluster In. Will not recurse on any subclusters of Cluster In. In this case, Index refers to the tabbing order of Cluster In. Index in lowest level: once an element with Name is found, its tab order index in its owning cluster is returned in Index.

MGI Get Cluster Value

This VI is designed to return the value of an element in a cluster (as a variant) based on the name provided. If there are multiple fields with the same name, only the first will be returned. Setting Flat? to True avoids searching in subclusters.

MGI Replace Cluster Element

This VI searches for an element or subelement in Cluster In named Name and replaces it with Data. If Data is the wrong size or if an element with Name cannot be found, then Cluster In will be returned for Cluster Out.