Saving a signal

| Scalar | C |
в палитре на схеме

The block transmits the input analog signal to the output if translation is allowed (x2=1). If the sign of translation is 0, then the output fixes the value that was at the moment of translation prohibition. If translation is prohibited at the time of project initialization, then there will be a zero signal at the output of the block. The block schematic image shows the value of the output signal, which is equal to the saved one or the same as the input one, if the translation is allowed. The block truth table is as follows:

Входные порты

  • Input signal X - the input signal;
  • Sign of translation - the command to broadcast the input signal to the output.

Выходные порты

  • Y - output signal.

Свойства

  • Block output - the value of the block output if the input translation does not occur.

Параметры

none

Прим.: the block truth table is as follows:
X1(t) (input) X2(t) (sign of translation) X1(t+1) (input) X2(t+1) (sign of translation) Y(t) (output) Y(t+1) (output)
Q(t) 1 Q(t+1) 1 Q(t) Q(t+1)
Q(t) 1 Q(t+1) 0 Q(t) Q(t)
Q(t) 0 Q(t+1) 1 Q(t-1) Q(t+1)
Q(t) 0 Q(t+1) 0 Q(t-1) Q(t-1)