.ModelicaReference.Operators.'shiftSample()'

Information

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

Syntax

shiftSample(u, shiftCounter, resolution)

Examples

  Clock u  = Clock(3, 10);
  // ticks: 0, 3/10, 6/10, ..

  Clock y1 = shiftSample(u,1,3);
  // ticks: 1/10, 4/10, ...

  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

Generated at 2020-06-05T21:39:08Z by OpenModelica 1.16.0~dev-442-g2e5bc9f