The block outputs the serial number of the first "1" in the vector of binary signals received at the input.
Inputs
vector - port for the input signal.
Outputs
output - the serial number of the first "1" in the input vector.
Properties
none
Parameters
none
Note:
the block also works in dynamics, changing its output accordingly, when the vector at the input changes. Most often the block is paired with the Dynamic sampling block. Example demonstrating the operation of the block: