PartialCheckInSlidingWindowWithPropertyOutput partial block
Requirements.Interfaces.PartialCheckInSlidingWindowWithPropertyOutput
ยท source
Interfaces and icon for check block that evaluates a property in a sliding time window and returns the result as Property
Interfaces and icon of the check blocks in ChecksInSlidingWindow that evaluate a property in a sliding time window and return the result as Property. It declares
- the Boolean input check (entered in the parameter dialog and displayed in the icon), the signal that is inspected,
- the parameter window > 0, the length of the sliding time window, displayed in the icon,
- the Property output y, the verdict in the window (Violated, Undecided or Satisfied; for example Undecided while the first window is not yet complete),
- the optional MarginOutput margin = robustness/scale
(present if
computeMargin= true), and the parameter scale of the margin (tab "Margin"), - the protected variable robustness, the signed distance of the check to its limit in the quantity's unit, ≥ 0 exactly when the check holds.
An extending block must provide the equations for y and robustness. It is extended, for example, by MinDuration, MinAccumulatedDuration, BandDuration, BandAccumulatedDuration, MinRising, BandRising. The variant with Boolean output is PartialCheckInSlidingWindowWithBooleanOutput; the base class of checks in a fixed window is PartialCheck.
Parameters
| Name | Type | Description |
|---|---|---|
window parameter | SI.Time | Length of sliding time window (> 0) |
scale parameter | Real | Scale of the margin: margin = robustness/scale, with scale the requirement's tolerance (1 = the raw robustness in the quantity's unit) |
computeMargin parameter | Boolean | = true, if the normalized margin output is provided |
Inputs
| Name | Type | Description |
|---|---|---|
check input | Boolean | Boolean to check |
Components and variables
| Name | Type | Description |
|---|---|---|
y | Requirements.Interfaces.PropertyOutput | Property output signal |
margin | Requirements.Interfaces.MarginOutput | Normalized margin of the check: >= 0 exactly when the check holds, in units of scale |