Key-1
![]() |
![]() |
| Vector | C | ST | |
| in the palette | on the schematic |
The block is vectorized and implements the controlled key function according to the following algorithm:

where x(t) is the vector of input signals, y1(t) is the vector of output signals at the 1st output port, y2(t) is the vector of output signals at the 2nd output port, K is the vector of threshold values (setpoints) that determine the conditions for switching signals at the output ports of the block, y0 is the vector of signals at the 1st output port of the block, with input signals those less than the threshold values K or the vector of signals at the 2nd output port of the block, with input signals those more than the threshold values K.

where x(t) is the vector of input signals, y1(t) is the vector of output signals at the 1st output port, y2(t) is the vector of output signals at the 2nd output port, K is the vector of threshold values (setpoints) that determine the conditions for switching signals at the output ports of the block, y0 is the vector of signals at the 1st output port of the block, with input signals those less than the threshold values K or the vector of signals at the 2nd output port of the block, with input signals those more than the threshold values K.
Inputs
- input - input signal.
Outputs
- output1 - the first output of the block;
- output2 - the second output of the block.
Properties
- Setpoint - vector of "thresholds" K;
- Subthreshold value is the signal vector y₀ at the 1st output port of the block, with input signals those thess than the threshold values K or, accordingly, the signal vector at the 2nd output port of the block, with input signals those more than the threshold values K.
Parameters
- Level - the current position of the key.
Note:
- By default, the block generates a scalar output signal.
- Named properties can be set as local model variables (submodels) in a programming language script, as global project signals using the Tools → Signals main menu item, or as external project signals using an attachable signal database.

