en:software:qview:qview_6:qcl_library:ac10avergarr

This translation is older than the original page and might be outdated. See what has changed.

AC10AvergArr

A = Array

C = Calculation functions

The AverageArray function calculates the arithmetic mean between the elements of an array.

AC10AvergArr (array, average, done)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
IN ARRSYS array L/S Array to calculate the average of its elements
OUT SYSTEM average S The arithmetic mean value calculated
OUT GLOBAL done F Flag that indicates that the operation completed

Example

Is the arithmetic mean of all the values in the array and puts it in the glMedia variable each front of the “gfEsegui” flag

MAIN:
      IF gfEsegui
            gfEsegui = 0
            AC10AvergArr (array, average, done)
            glMedia = average
      ENDIF

Note

  • Executes a WAIT if the function uses more than 180 milliseconds to run.
  • Last modified: 2019/08/29 17:01