firstValue function

Requirements.Internal.SlidingWindow.firstValue  ยท source

Icon of firstValue

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

NameTypeDescription
buffer inputBufferMemory of sliding window

Outputs

NameTypeDescription
b outputBooleanNewest value