Array Size function: Difference between revisions
Appearance
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
[[File:Array Size - Terminals.png|thumb|Array Size function]] | [[File:Array Size - Terminals.png|thumb|Array Size function]] | ||
{{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function|icon= | {{LabVIEW Palette Object Information|palette=Functions Palette/Programming/Array{{!}}Array palette|type=function|icon=Array Size.png}} | ||
The '''Array Size''' function returns the number of elements in each dimension of an array. | The '''Array Size''' function returns the number of elements in each dimension of an array. |
Latest revision as of 22:17, 25 June 2020

Object information | |
---|---|
Owning palette(s) | Array palette |
Type | Function |
Requires | Basic Development Environment |
Icon | ![]() |
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.
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.