WOLFRAM SYSTEM MODELER

EventClock

Generates a clock signal when the Boolean input changes from false to true

Wolfram Language

In[1]:=
SystemModel["Modelica_Synchronous.ClockSignals.Clocks.EventClock"]
Out[1]:=

Information

This component generates a clock signal triggered by a continuous-time Boolean input signal u: Whenever the Boolean input signal u changes from false to true, then the output clock signal y ticks.

For an introduction to clocks see UsersGuide.Clocks.

If a clock is associated to a clocked continuous-time partition, then an integrator has to be defined that is used to integrate the partition from the previous to the current clock tick. This is performed by setting parameter useSolver = true and defining the integration method as String with parameter solver. Both parameters are in tab Advanced. For an example, see Examples.Systems.ControlledMixingUnit.

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

y

Type: ClockOutput

Description: 'output Clock' as connector

u

Type: BooleanInput

Description: 'input Boolean' as connector

Used in Examples (2)

TestEventClockWithIntegrator

Modelica_Synchronous.WorkInProgress.Tests

TheDifferentClocks

Modelica_Synchronous.WorkInProgress.ForDocumentation

Used in Components (1)

RotationalClock

Modelica_Synchronous.ClockSignals.Clocks.Rotational

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