Array Average

The Array Average action calculates the average value for a range of array elements.

Parameter descriptions

The action provides these parameters:

Parameter Description
Data type The list of the available data types for the node. For example, BYTE, WORD, DWORD, or INT1, INT2, INT4 and so forth.
Maximum number of elements The value indicates the maximum number of array elements that can be passed into the array variable. The maximum number of elements can be of any size.

Input tab

Parameter Description
Input Array To calculate the average value from an array, the array must first be passed into the action. The starting element for the average calculation is entered in the Value column.
The values for Logical and Count columns will change based on the Data type and Maximum number of elements parameters specified in the action definition.
Input Count The Input Count holds the number of items actually passed into the action.
This number must be less than or equal to the maximum number of elements in the array. If the count exceeds the value in Maximum number of elements, an error will occur at runtime.

Output tab


Parameter Description
Average The calculated average of the array elements, based on the Input Array and Input Count parameters.