modelRotationalSample
Simple example of a rotational clock with variable trigger interval and switching rotation-direction.
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
Simple example of a rotational clock with variable trigger interval and switching direction of rotation. The input rotation is just sinusoidal, switching direction every half second. The trigger interval is changed with the same pace; every half second it is doubled or halved respectively. The generated clocked signals are therefore:

Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.Sine | angle_input | ||
| Modelica.Blocks.Sources.Pulse | trigger_interval_input | ||
| Clocked.ClockSignals.Clocks.Rotational.RotationalClock | rotationalClock | ||
| Clocked.RealSignals.Sampler.SampleClocked | sample_angle |