en:software:qview:qview_6:qcl_library:ac10avergarr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:software:qview:qview_6:qcl_library:ac10avergarr [2017/02/17 17:41] – created qem103en:software:qview:qview_6:qcl_library:ac10avergarr [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== AC10AvergArr ======
 +
 +**A = **//Array//
 +
 +**C = **//Calculation functions//
 +
 +The AverageArray function __calculates the arithmetic mean between the elements of an array__.
 +
 +===== IMPLEMENTATION =====
 +
 +**AC10AvergArr (array, average, done)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  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
 +
 +<code QCL>
 +MAIN:
 +      IF gfEsegui
 +            gfEsegui = 0
 +            AC10AvergArr (array, average, done)
 +            glMedia = average
 +      ENDIF
 +</code>
 +
 +=== Note ===
 +
 +  * Executes a WAIT if the function uses more than 180 milliseconds to run.