Min Max block
Selects the minimum and maximum of all the input fields in the input port.
Min Max block
Description
The Min Max block selects the minimum and maximum values from a set of input fields and outputs the maximum value, as MAX_Field, from the top output port and the minimum value, as MIN_Field, from the bottom output port. The block requires no configuration, simply an input connection.
Min MAx block
Block Type
Mathematical block
Input/Output ports
The input port can only use fields of type double.
The block has 2 output ports Max and Min. The Max port has 1 field named MAX_Field and the Min port has 1 field named MIN_FIeld.
Functions performed on tags
-
On the values - The MAX_Field in the Max port contains the maximum value of all the current input values. The MIN_Field in the Min port contains the minimum value of all the current input values.
-
On the timestamp - Both output fields take the latest/most recent time stamp of the timestamps on all the input fields.
-
On the quality - The qualities of the 2 output fields are the worst quality of all the input fields.
Example
The data below shows the functioning of the Min Max function block. There are three input data values with corresponding field qualities. The Min Max block filters the incoming data and, for the specific execute, assigns the maximum value to the Max_Field and the minimum value to the Min_Field. The quality of the output field is set to bad if either of the inputs is of bad quality.
Example to illustrate the functioning of the Min max block
Related topics: