Max Min Comparator
Compare multiple input signals and output the maximum or minimum value for limit selection, constraint judgment and control signal screening.
Component Appearance and Location
Expand Controller in the component library on the left and find "Maximum and Minimum Comparators".
Ports and Connections
| Port Key | Type | Direction | Interface Name | Display Conditions |
|---|---|---|---|---|
0 | CONTROL | input | Input signal channel 1 | always show |
1 | CONTROL | input | Input signal channel 2 | always show |
2 | CONTROL | output | Output signal channel | always show |
3 | CONTROL | input | Input signal channel 3 | When "Open Channel 3" is "Yes" |
4 | CONTROL | input | Input signal channel 4 | When "Open Channel 4" is "Yes" |
5 | CONTROL | input | Input signal channel 5 | When "Open Channel 5" is "Yes" |
Channel 1 and channel 2 are always involved in comparison; channels 3 to 5 can be enabled as needed. The output gives the maximum or minimum value of all enabled inputs at the current moment.
Parameter List
Basic Parameters
| Name | key | Type | Default / Options | Description |
|---|---|---|---|---|
| Comparison Type | CmpType | choice | Maximum / Minimum | Comparison Type |
| Enable Channel 3 | Chanel3 | choice | No / Yes | Enable Channel 3 |
| Enable Channel 4 | Chanel4 | choice | No / Yes | Enable Channel 4 |
| Enable Channel 5 | Chanel5 | choice | No / Yes | Enable Channel 5 |
Parameter Guidance
Choose Maximum or Minimum under Comparison Type. Channels 1 and 2 always participate. Enable channels 3–5 separately and connect valid signals. All inputs must share quantity, units, and reference.
Modeling Steps
- Connect channels 1 and 2, then enable and connect others as needed.
- Select maximum or minimum and connect output downstream.
- Run transient simulation and compare simultaneous inputs and output.
View Results
Output is the current maximum or minimum. The determining channel can change when signals cross. Inspect inputs to identify the source measurement.
Professional Theory
Let be enabled channel indices and the current value of channel . The comparisons are
Comparison uses signed values and preserves units. Evaluation uses current values once all enabled inputs are ready. Signal Updates
Applicability and Limits
- Multiple measurements. Finds current lowest pressure, highest temperature, or similar values. Use the Extreme Value Recorder for one signal over time.
- Magnitudes. To ignore sign, apply Absolute Value to each input first.
Common Inspections
- Error after enabling a channel. Check every enabled channel has a valid source.
- Unexpected determining measurement. Check type, sources, units, and that comparison uses current values.