blockPartialRotationalClock
Base class for event clocks that generate a clock tick each time an observed input angle changes
Extends from ClockSignals.Interfaces.PartialClock (Icon, connector, and solver method of a block that generates a clock).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Advanced | |||
| Boolean | useSolver (from PartialClock) | false | = true, if solverMethod shall be explicitly defined |
| ModelicaServices.Types.SolverMethod | solverMethod (from PartialClock) | "ExplicitEuler" | Integration method used for discretized continuous-time partitions |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Clocked.ClockSignals.Interfaces.ClockOutput | y (from PartialClock) | ||
| Modelica.Blocks.Interfaces.RealInput | angle | Input angle observed for generating clock ticks. | |
| Modelica.Blocks.Interfaces.IntegerOutput | direction | Rotation direction (sign: +1 or -1). Sampled with the provided clock signal 'y'. | |
| Modelica.Blocks.Interfaces.BooleanOutput | direction_changed | = 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. |