firstValue function
Requirements.Internal.SlidingWindow.firstValue
ยท source
Returns the newest value
Extends Modelica.Icons.Function
Returns the Boolean value of the newest element of the buffer (index first), the value the
signal has had since its last change. It asserts that the buffer is not empty. The time of this element is
indexTime(buffer, 1); the oldest
value is returned by lastValue. Used by
maxDuration and
accumulatedDuration to decide
whether the phase that is still running counts.
Inputs
| Name | Type | Description |
|---|---|---|
buffer input | Buffer | Memory of sliding window |
Outputs
| Name | Type | Description |
|---|---|---|
b output | Boolean | Newest value |