blockRotationalClock

Event clock generating a clock tick each time an observed input angle changed for a rotational-interval given as variable input

Extends from PartialRotationalClock (Base class for event clocks that generate a clock tick each time an observed input angle changes).

Information

For a simple example cf. the rotational sampling example.

Parameters

TypeNameDefaultDescription
Advanced
BooleanuseSolver (from PartialClock)false= true, if solverMethod shall be explicitly defined
ModelicaServices.Types.SolverMethodsolverMethod (from PartialClock)"ExplicitEuler"Integration method used for discretized continuous-time partitions

Connectors

TypeNameDefaultDescription
Clocked.ClockSignals.Interfaces.ClockOutputy (from PartialClock)
Modelica.Blocks.Interfaces.RealInputangle (from PartialRotationalClock)Input angle observed for generating clock ticks.
Modelica.Blocks.Interfaces.IntegerOutputdirection (from PartialRotationalClock)Rotation direction (sign: +1 or -1). Sampled with the provided clock signal 'y'.
Modelica.Blocks.Interfaces.BooleanOutputdirection_changed (from PartialRotationalClock)= true, if the rotation direction of the observed angle changed since the last tick of y', otherwise false. Sampled with the provided clock signal y.
Modelica.Blocks.Interfaces.RealInputtrigger_intervalRotational-interval the input angle must be changed to trigger the next clock tick

Components

TypeNameDefaultDescription
ClockSignals.Clocks.EventClocky_clock
RealSignals.Sampler.SampleClockedupdate_offset
RealSignals.Sampler.Holdangular_offset
Modelica.Blocks.Math.Addsub
Modelica.Blocks.Logical.Lessless
Modelica.Blocks.Math.Absabs2
Modelica.Blocks.Math.Absabs1
Modelica.Blocks.Math.Signdirection_sign
Modelica.Blocks.Math.RealToIntegercast
IntegerSignals.NonPeriodic.IntegerChangechanged
RealSignals.Sampler.SampleClockedupdate_direction