'previous()'

previous()

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

Gives the previous value of a clocked expression as part of the synchronous language elements.

Syntax

previous(u)

Description

The return argument has the same type as the input argument. Input and return arguments are on the same clock. At the first tick of the clock of u or after a reset transition, the start value of u is returned. At subsequent activations of the clock of u, the value of u from the previous clock activation is returned.