WOLFRAM SYSTEM MODELER

RotationalSample

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

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica_Synchronous.Examples.Elementary.ClockSignals.RotationalSample"]
Out[1]:=

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 (4)

angle_input

Type: Sine

Description: Generate sine signal

trigger_interval_input

Type: Pulse

Description: Generate pulse signal of type Real

rotationalClock

Type: RotationalClock

Description: Event clock generating a clock tick each time an observed input angle changed for a rotational-interval given as variable input.

sample_angle

Type: SampleClocked

Description: Sample the continuous-time, Real input signal and provide it as clocked output signal. The clock is provided as input signal