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:

RotationalSample_Result.png
.

Components

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