modelLatch
Validation model for the Latch block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Latch. Following tests are implemented:
-
When the clear input is
false, the initial output should equal to the initial latch input. -
When the clear input is
true, the initial output should befalse, regardless of the value of the latch input. -
At the same moment, when both the clear input and the latch input rise from
falsetotrue, the output should becomefalseif it wastrue, or remainfalseif it wasfalse. -
At the same moment, when the clear input falls from
truetofalseand the latch input rises fromfalsetotrue, the output should rise fromfalsetotrue.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Logical.Latch | falCleTruIni | Latch block with clear input being contantly false and true initial latch input | |
| Buildings.Controls.OBC.CDL.Logical.Latch | truCleTruIni | Latch block with clear input being contantly true and true initial latch input | |
| Buildings.Controls.OBC.CDL.Logical.Latch | falCleFalIni | Latch block with clear input being contantly false and false initial latch input | |
| Buildings.Controls.OBC.CDL.Logical.Latch | truCleFalIni | Latch block with clear input being contantly true and false initial latch input | |
| Buildings.Controls.OBC.CDL.Logical.Latch | swiCleInp | Initial false output, with clear input switch between false and true | |
| Buildings.Controls.OBC.CDL.Logical.Latch | swiCleInp1 | Initial false output, with clear input switch between false and true | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Pulse | cleInp | Block that outputs cyclic on and off | |
| Buildings.Controls.OBC.CDL.Logical.Not | not1 | Logcal not | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Constant | fal | False clear input | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Pulse | latInp | Block that outputs cyclic on and off | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Constant | tru | True clear input | |
| Buildings.Controls.OBC.CDL.Logical.Not | not2 | Logical not |
Revisions
-
April 4, 2019, by Jianjun Hu:
Added test to validate initial output. This is for Buildings, issue 1402. -
March 30, 2017, by Jianjun Hu:
First implementation.