. |
Latch Mechaware API Documentation > Logic
OverviewOverviewDescription The Latch block holds its Output value at the latest Input value depending on the value of the Latch input. If the Polarity configuration parameter is zero, the Output is held when the Latch input is zero and the output follows the Input if the Latch value is non-zero. If the Polarity parameter is non-zero the Output is held when Latch is non-zero and follows the Input when Latch is zero. The Latch is only updated at the update rate specified by the Evaluate Block. Example
The configuration values for this block are as follows:
Matlab/SimulinkSimulink InterfaceThe Latch block holds its Output value at the latest Input value depending on the value of the Latch input. If the Polarity configuration parameter is zero, the Output is held when the Latch input is zero and the Output follows the Input if the Latch value is non-zero. If the Polarity parameter is non-zero, the Output is held when Latch is non-zero and follows the Input when Latch is zero. The block has two user data fields (User Data 0, User Data 1) to store application-specific data for convenient storage and retrieval. For more information, see User Data Storage. The block's update schedule is determined by the Evaluate Block. The following Parameter Dialog Box can be opened by double-clicking on the block in a Simulink model:
C++ APILATCHBlockDeclaration Public Method
Description The Latch block holds its Output value at the latest Input value depending on the value of the Latch input.
Methods
|
| | Copyright © 2001-2012 Motion Engineering |