In LabVIEW, indexes let you navigate through an array and retrieve elements, rows, columns, and pages from an array on the block diagram. To locate a particular element in an array requires one index per dimension. NET controls, ActiveX controls, charts, multi-plot XY graphs, or multicolumn listboxes. Also, you cannot create an array of subpanel controls, tab controls. However, you can use a multidimensional array or create an array of clusters where each cluster contains one or more arrays. The index of the first element in the array, regardless of its dimension, is zero. Note Array indexes in LabVIEW are zero-based. Right-click an array and select Export from the shortcut menu to view available export options. You can export data from arrays to locations such as Microsoft Excel. Arrays are ideal for storing data you collect from waveforms or data generated in loops, where each iteration of a loop produces one element of the array. Consider using arrays when you work with a collection of similar data and when you perform repetitive computations. You can build arrays of numeric, Boolean, path, string, waveform, and cluster data types. An array can have one or more dimensions and as many as (2 31) – 1 elements per dimension, memory permitting. A dimension is the length, height, or depth of an array. Elements are the data that make up the array.
ArraysĪn array consists of elements and dimensions.
Clusters group data elements of mixed types. Arrays group data elements of the same type. Use the array and cluster controls and functions to group data.