Differences
This shows you the differences between two versions of the page.
en:software:qview:qview_6:qcl_library:ac10fdmaxarr [2017/02/21 17:58] – created qem103 | en: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 = **// | ||
+ | |||
+ | The AC10FdMaxArr function __Find highest value among the elements of an array__ and puts it on a variable (" | ||
+ | |||
+ | ===== IMPLEMENTATION ===== | ||
+ | |||
+ | **AC10FdMaxArr (array, valmax, done)** | ||
+ | |||
+ | Parameters: | ||
+ | |||
+ | ^IN/ | ||
+ | | IN | ARRSYS | ||
+ | | OUT | SYSTEM | ||
+ | | OUT | GLOBAL | ||
+ | |||
+ | === Example === | ||
+ | |||
+ | Find the maximum value of the array and puts on the ' | ||
+ | |||
+ | <code QCL> | ||
+ | IF gfFind | ||
+ | gfFind = 0 | ||
+ | AC10FdMaxArr (array, valmax, done) | ||
+ | value = valmax | ||
+ | ENDIF | ||
+ | </ | ||
+ | |||
+ | === Operation notes === | ||
+ | |||
+ | * The function executes a WAIT a time every 180 milliseconds. | ||