The Numeric functions located on the
Functions>>Express Numeric and Functions>>All
Functions>>Numeric palettes are polymorphic. This means
that the inputs to these functions can be different data
structures, such as scalar values and arrays. For example, you
can use the Add function to add a scalar value to
an array or to add two arrays together. If you wire a scalar
value of 22 and the following array to the Add
function.
The function adds the scalar value to each element of the array
and returns the following array:
If you wire the previous two arrays to the Add function, the
function adds each element of one array to the corresponding
element of the other array and returns the following array:
Wire two arrays of different sizes to the Add
function, such as the previous
array and the following
array:
The function adds corresponding elements and returns the following array, which is the size of the
smaller input array:
You use the
Numeric functions with
clusters the same way you use them with arrays of
numeric values. Refer to
Clusters for
more information about clusters.
"A full introductory course on programming with LabVIEW."