WOLFRAM SYSTEM MODELER

RotationalClock

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

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.Clocked.ClockSignals.Clocks.Rotational.RotationalClock"]
Out[1]:=

Information

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

For a simple example cf. the rotational sampling example.

Parameters (2)

useSolver

Value: false

Type: Boolean

Description: = true, if solverMethod shall be explicitly defined

solverMethod

Value: "ExplicitEuler"

Type: SolverMethod

Description: Integration method used for discretized continuous-time partitions

Connectors (5)

y

Type: ClockOutput

Description: 'output Clock' as connector

angle

Type: RealInput

Description: Input angle observed for generating clock ticks.

direction

Type: IntegerOutput

Description: Rotation direction (sign: +1 or -1). Sampled with the provided clock signal 'y'.

direction_changed

Type: BooleanOutput

Description: = true, if the rotation direction of the observed angle changed since the last tick of y', otherwise false. Sampled with the provided clock signal y.

trigger_interval

Type: RealInput

Description: Rotational-interval the input angle must be changed to trigger the next clock tick

Components (11)

y_clock

Type: EventClock

Description: Generate a clock signal when the Boolean input changes from false to true

update_offset

Type: SampleClocked

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

angular_offset

Type: Hold

Description: Hold the clocked, Real input signal and provide it as continuous-time output signal (zero order hold)

sub

Type: Add

Description: Output the sum of the two inputs

less

Type: Less

Description: Output y is true, if input u1 is less than input u2

abs2

Type: Abs

Description: Output the absolute value of the input

abs1

Type: Abs

Description: Output the absolute value of the input

direction_sign

Type: Sign

Description: Output the sign of the input

cast

Type: RealToInteger

Description: Convert Real to Integer signal

changed

Type: IntegerChange

Description: Indicate Integer signal changing

update_direction

Type: SampleClocked

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

Used in Examples (2)

RotationalSample

Modelica.Clocked.Examples.Elementary.ClockSignals

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

LogicalSample

Modelica.Clocked.Examples.Elementary.ClockSignals

Simple example of conjunctive and disjunctive logical clocks, combining clock signals to derive new event driven clocks.

Used in Components (1)

FixedRotationalClock

Modelica.Clocked.ClockSignals.Clocks.Rotational

Event clock generating a clock tick each time an observed input angle changed for a certain, constant rotational-interval