modelRotationalSample

Simple example of a rotational clock with variable trigger interval and switching rotation-direction.
Diagram of RotationalSample

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Simple example of a rotational clock with variable trigger interval and switching rotation-direction. The input rotation is just sinodical, switching direction every half second. The trigger interval is changed with the same pace; every half second it is doubled or halfed respectively. The generated clocked signals are therefore:

.

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.Sineangle_input
Modelica.Blocks.Sources.Pulsetrigger_interval_input
Modelica_Synchronous.ClockSignals.Clocks.Rotational.RotationalClockrotationalClock
Modelica_Synchronous.RealSignals.Sampler.SampleClockedsample_angle