en:software:qview:qview_6:qcl_library:ac10fdmaxarr

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

AC10FdMaxArr

A = Array

C = Calculation

The AC10FdMaxArr function Find highest value among the elements of an array and puts it on a variable (“valmax”).

AC10FdMaxArr (array, valmax, done)

Parameters:

IN/OUTVARIABLE TYPEEXAMPLE NAMEDIM
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.

IF gfFind
	gfFind = 0
        AC10FdMaxArr (array, valmax, done)
        value = valmax
ENDIF

Operation notes

  • The function executes a WAIT a time every 180 milliseconds.
  • Last modified: 2019/08/29 17:01