Differences

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

Link to this comparison view

en:software:qview:qview_6:qcl_library:ac10fdmaxarr [2017/02/21 17:58] – created qem103en:software:qview:qview_6:qcl_library:ac10fdmaxarr [2019/08/29 17:01] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +====== AC10FdMaxArr ======
 +
 +**A = **//Array//
 +
 +**C = **//Calculation//
 +
 +The AC10FdMaxArr function __Find highest value among the elements of an array__ and puts it on a variable ("valmax").
 +
 +===== IMPLEMENTATION =====
 +
 +**AC10FdMaxArr (array, valmax, done)**
 +
 +Parameters:
 +
 +^IN/OUT^VARIABLE TYPE^EXAMPLE NAME^DIM^^
 +|  IN  |  ARRSYS  |  array  |  L/S  |Arrays for which you want to find the major element|
 +|  OUT  |  SYSTEM  |  valmax  |  L  |Maximum detected value in array (OUT)|
 +|  OUT  |  GLOBAL  |  done  |  F  |Flag of operation executed|
 +
 +=== Example ===
 +
 +Find the maximum value of the array and puts on the 'value' variable, when the " gfFind " flag is set to 1.
 +
 +<code QCL>
 +IF gfFind
 + gfFind = 0
 +        AC10FdMaxArr (array, valmax, done)
 +        value = valmax
 +ENDIF
 +</code>
 +
 +=== Operation notes ===
 +
 +  * The function executes a WAIT a time every 180 milliseconds.