Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:ac10avergarr [2017/02/17 17:41] – created qem103 | en: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 = **// | ||
+ | |||
+ | The AverageArray function __calculates the arithmetic mean between the elements of an array__. | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **AC10AvergArr (array, average, done)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS | ||
+ | | OUT | SYSTEM | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Is the arithmetic mean of all the values in the array and puts it in the glMedia variable each front of the " | ||
+ | |||
+ | <code QCL> | ||
+ | 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. | ||