'backSample()'

backSample()

Information

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

Shifts a clocked expressions to undo a delay as part of the synchronous language elements.

Syntax

backSample(u, shiftCounter, resolution)

Examples


  Real x=sample(time, u);
  // Ticks at 0, 3/10, 6/10 with values corresponding to time

  Real x2=shiftSample(x, 1, 3);
  // Ticks at 1/10 with value 0/10, and at 4/10 with value 3/10 etc

  Real x3=backSample(x2, 1, 3);
  // Same as x.