Array Size function

From LabVIEW Wiki
Jump to: navigation, search
Array Size function
Object information
Owning palette(s) Array palette
Type Function
Requires Basic Development Environment
Icon Array Size.png

The Array Size function returns the number of elements in each dimension of an array.

Usage

Connect the input terminal to an array of any type. The node automatically adapts to the connected array and returns either a single numeric value for a one-dimensional array, or an array of numeric values for multidimensional arrays.

Array Size - Examples.png

Best practice

  • Use the Add Array Elements function to calculate the sum of all elements in a multidimensional array.
  • Use the Index Array function on the return value for multidimensional arrays to get size values for individual dimensions.