====== Selection of Minimum, Maximum, or Average from Multiple Values ====== {{:cs:mervis-ide:35-help:valueselector.png}} ==== Full Name ==== Lib.Mervis.v1_0.ValueSelector ==== Required Project References ==== * Lib.Mervis ===== Description ===== A block used for selecting the minimum, maximum, or average value from up to four input values. ===== Usage in ST ===== program test var selector: lib.mervis.v1_0.ValueSelector; end_var selector(); end_program ===== Inputs ===== |Name |Data Type |Retain|Mandatory Connection|Meaning| |In1 |real |No |Yes |Input value 1| |In2 |real |No |No |Input value 2| |In3 |real |No |No |Input value 3| |In4 |real |No |No |Input value 4| |Select|[[ValueSelectorType.htm|ValueSelectorType]] |Yes |No |Selection value| ===== Outputs ===== |Name |Data Type|Meaning| |Out |real |Output| ===== Detailed Function Description ===== The block is used to select a value from multiple inputs. Based on the //Select// parameter, the minimum, maximum, or average value from the inputs is transferred to the output. If there are fewer than four actual inputs, the other inputs should be managed so they do not affect the output, for example, by connecting them to another input.