Engee documentation

Intermediate Voter

Selector.

intermediate voter

Description

The Intermediate Voter block implements a selector, the output of which generates the average logical value of the signals entering the block [1]. The number of input signals is either three or four. The device from three input signals selects and transmits to the output the signal that has an intermediate amplitude: signals with the smallest and largest amplitudes among the three signals are discarded. The device selects from four input signals and transmits to the output the signal with the lowest amplitude from the two signals remaining after the signals with the lowest and highest amplitudes among the four signals have been discarded.

Ports

Input

Signals - input signals
vector 3 to 1 | vector 4 to 1

Input signals as a 3 by 1 or 4 by 1 vector depending on the value of the Channels parameter.

Data types: Float64.

Output

Average - logical average
scalar

Average logical value of input signals.

Data types: Float64.

Parameters

Channels - number of input signals
3 (by default) | 4

Number of input signals.

Additional options

C code generation: Yes

Sources

  1. Obolensky Y.G., Ermakov S.A., Sukhorukov R.V. Introduction to Design of Aviation Steering Drive Systems. Textbook. Moscow, publishing house of the State Unitary Enterprise of Moscow "District Newspaper of the South-West Administrative District", 2011. - 344 p. with the illustration.