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 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
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.Sine | angle_input | ||
| Modelica.Blocks.Sources.Pulse | trigger_interval_input | ||
| Modelica_Synchronous.ClockSignals.Clocks.Rotational.RotationalClock | rotationalClock | ||
| Modelica_Synchronous.RealSignals.Sampler.SampleClocked | sample_angle |