.ModelicaReference.Operators.'backSample()'

Information

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.

Generated at 2024-12-21T19:25:56Z by OpenModelicaOpenModelica 1.24.3 using GenerateDoc.mos