M of N





| Vector | C | ST |
in the palette on the schematic
The block returns the boolean 1 if the number of inputs on which the value is equal to the boolean 1 is greater than or equal to a set number:

where xi(t) is the scalar value at the i-th input to the block, y(t) is the output logic signal, k is the internal variable of the block to calculate the number of input signals equal to 1.

Inputs

  • u_n - the n-th inut port. The number of ports is configured in the block properties.

Outputs

  • Y - operation result.

Properties

  • Number of ports - number of input ports N.
  • Number of True values for triggering - the number of M input signals equal to one, when reached, a logical one is formed at the output.

Parameters

none