class'hold()'

hold()

Extends from ModelicaReference.Icons.Information (Icon for general information packages).

Information

Returns a piecewise constant signal based on a clocked variable as part of the synchronous language elements.

Syntax

hold(u)

Description

Input argument u is a clocked Component Expression or a parameter expression. The operator returns a piecewise constant signal of the same type of u. When the clock of u ticks, the operator returns u and otherwise returns the value of u from the last clock activation. Before the first clock activation of u, the operator returns the start value of u.