This function latches the Y output to the value on the X input when the latch input transitions from FALSE to TRUE.The output is held at this value until the next FALSE to TRUE transition. At each FALSE to TRUE transition the Y output is latched to the current X input.
Logic Inputs
| Input Name | Input Value | Logic Value | Description |
| latch | unconnected | 0 | Output remains at zero as there is nothing to cause a latch. |
| VAL != 0.0 | 1 | Latch the input X to the output on FALSE to TRUE transitions (no negation) | |
| invalid | 0 | Output remains as it was. |
Analog Inputs
| Range | ||||
| Input Name | Low | High | Input Value | Description |
| x | >=- infinity | <+ infinity | unconnected | X = invalid |
| invalid | X = invalid | |||
Output
| Output Name | Range | Description |
| Y | Any floating point value | Value from X when the latch input goes from FALSE to TRUE |
Notes:
If both the X and latch inputs are unconnected, the output is zero.
If the input is invalid, the output is transitioned to invalid when the latch input goes from FALSE to TRUE.
The latch input can be negated to cause a TRUE to FALSE transition to latch X to Y.
From iteration to iteration of the Analog Latch keeps track of the last state of the latch input so that it knows when a FALSE to TRUE transition occurs.
On power up/reset the last latch value is set to FALSE, regardless of the negation configuration.