Skip to main content

Extreme Value Recorder

The maximum or minimum value of the input signal is recorded during the simulation process to identify the peak and valley values of operating parameters such as pressure and flow.

Component Appearance and Location​

Expand Controller in the component library on the left and find "Extreme Value Recorder".

Created with Fabric.js 5.3.0

Ports and Connections​

Port KeyTypeDirectionInterface NameDisplay Conditions
0CONTROLinputInput signal portalways show
1CONTROLoutputOutput signal portalways show

The input terminal receives the signal to be monitored, and the output terminal continuously gives the maximum or minimum value recorded from the beginning of calculation to the current moment.

Parameter List​

Basic Parameters

NamekeyTypeDefault / OptionsDescription
TypeCmpTypechoiceMaximum / MinimumType

Parameter Guidance​

Select Maximum or Minimum under Type: maximum for overpressure, minimum for minimum supply pressure. Match measurement units and reference conditions.

Modeling Steps​

  1. Connect one signal to port 0 and select Type.
  2. Connect port 1 to an oscilloscope or downstream component. Observe the original separately to locate peaks and troughs.
  3. Run transient simulation and compare update times for original and cumulative extrema. Oscilloscope

View Results​

Maximum output can only hold or increase; minimum can only hold or decrease. This is the cumulative extreme to the current instant, in input units. Inspect the original signal to locate when it occurred.

Professional Theory​

Let uku_k be input at accepted control instant kk. First valid input u0u_0 initializes the extreme. Subsequent updates follow the selected mode:

y0=u0,yk={max⁡(yk−1,uk),maximum mode,min⁡(yk−1,uk),minimum mode.y_0=u_0,\qquad y_k= \begin{cases} \max(y_{k-1},u_k), & \text{maximum mode},\\ \min(y_{k-1},u_k), & \text{minimum mode}. \end{cases}

The stored value holds if input is unchanged. Only signals actually received by the control network enter the record; unsampled peaks between control instants are omitted.

Applicability and Limits​

  • Historical extrema. Records one signal from initialization to now. Use the Max/Min Comparator for multiple simultaneous signals.
  • Restart and continuation. A new job initializes from its first valid input; continuation preserves the extreme.
  • Windows. The built-in record covers all history. Use a Python Script Controller for rolling windows or resets.

Common Inspections​

  • Unchanged output. Check type and whether a new extreme occurred.
  • Different chart readings. Check measurement, units, time, and whether the original chart saved that instant.
  • Existing extreme at startup. Check whether this is a new job or continuation.