modelProof
Validation model for the Proof block
Information
Validation test for the block Buildings.Controls.OBC.CDL.Logical.Proof. The following tests are implemented:
-
The instance
protests the case in which both boolean inputs change simultaneously, and hence both outputs will befalse. -
The instances
pro2andpro3use a different value forfeedbackDelay. They test the case in which both the inputs change fromtruetofalse. However, after the inputu_mchanges, the inputu_sremainstruefor a time that is longer thanfeedbackDelay. The outputyLocFalwill betrue. -
The instances
pro1andpro4use a different value forfeedbackDelay. They test the case in which both the inputs change fromtruetofalse. However, after the inputu_schanges, the inputu_mremainstruefor a time that is longer thanfeedbackDelay. The outputyLocTruwill betrue. -
The instance
pro5tests the case in which the measured inputu_mdoes not stabilize during the debounce time, and hence both outputs will betrue.
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Buildings.Controls.OBC.CDL.Logical.Proof | pro | Both inputs change at the same time | |
| Buildings.Controls.OBC.CDL.Logical.Proof | pro1 | Commanded input changes from true to false earlier than measured input | |
| Buildings.Controls.OBC.CDL.Logical.Proof | pro2 | Measured input changes from true to false earlier than commanded input | |
| Buildings.Controls.OBC.CDL.Logical.Proof | pro3 | Shorter delay to valid input | |
| Buildings.Controls.OBC.CDL.Logical.Proof | pro4 | Shorter delay to valid input | |
| Buildings.Controls.OBC.CDL.Logical.Proof | pro5 | Both inputs change at the same time | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Pulse | latInp | Block that outputs cyclic on and off | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Pulse | latInp1 | Block that outputs cyclic on and off | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Pulse | latInp2 | Block that outputs cyclic on and off | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Pulse | latInp3 | Block that outputs cyclic on and off | |
| Buildings.Controls.OBC.CDL.Logical.Sources.Pulse | latInp4 | Block that outputs cyclic on and off |
Revisions
-
March 27, 2023, by Jianjun Hu:
First implementation.