RecordMaxValue and RecordMinValue Blocks

RecordMaxValue

Receives a number in input and this value is stored only if it is bigger than the previous value received by the same input.

The reset input set the result output to 0 when its state is TRUE.

Input:

  • val (number)

  • reset (boolean)

Output:

  • result (number)

RecordMinValue

Receives a number in input and this value is stored only if it is lower than the previous value received by the same input.

The reset input set the result output to 0 when its state is TRUE.

Input:

  • val (number)

  • reset (boolean)

Output:

  • result (number)