PartialCheckInSlidingWindowWithPropertyOutput partial block

Requirements.Interfaces.PartialCheckInSlidingWindowWithPropertyOutput  ยท source

Icon of PartialCheckInSlidingWindowWithPropertyOutput

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

NameTypeDescription
window parameterSI.TimeLength of sliding time window (> 0)
scale parameterRealScale of the margin: margin = robustness/scale, with scale the requirement's tolerance (1 = the raw robustness in the quantity's unit)
computeMargin parameterBoolean= true, if the normalized margin output is provided

Inputs

NameTypeDescription
check inputBooleanBoolean to check

Components and variables

NameTypeDescription
yRequirements.Interfaces.PropertyOutputProperty output signal
marginRequirements.Interfaces.MarginOutputNormalized margin of the check: >= 0 exactly when the check holds, in units of scale