Message Edited by Johan.svensson on 06-26-2006 02:22 AM
Just compare the value with the previous max (from a shift register) using Max&Min, then feed the new max to the shift register. Repeat.
See attached image of a code fragment.
Of course a final program would need logic to reset the max, etc.
Message Edited by altenbach on 06-26-2006 12:35 AM