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.Clocked.Examples.Elementary.ClockSignals.RotationalSample"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

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