Lib.Mervis.v1_0.ValueSelector
A block used for selecting the minimum, maximum, or average value from up to four input values.
program test var selector: lib.mervis.v1_0.ValueSelector; end_var selector(); end_program
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 | Yes | No | Selection value |
Name | Data Type | Meaning |
Out | real | Output |
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.