PeriodicRealClock

Generate a periodic clock signal with a period defined by a Real number

Information

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

This component generates a periodic clock that starts ticking when the simulation starts. The period is defined in seconds by a Real number. If clocks are synchronized relatively to each other then only one of the clocks can be defined with PeriodicRealClock.

For an introduction to clocks see UsersGuide.Clocks. If exact, integer based, time synchronization with absolute period definitions is desired, use block PeriodicExactClock to generate a periodic clock signal.

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

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

period

Value:

Type: Time (s)

Description: Period of clock (defined as Real number)

Connectors (1)

y

Type: ClockOutput

Used in Examples (19)

ClockedWithDiscreteTextbookController

Modelica.Clocked.Examples.SimpleControlledDrive

Simple controlled drive with discrete textbook controller (period is not used in the controller)

ClockedWithDiscreteController

Modelica.Clocked.Examples.SimpleControlledDrive

Simple controlled drive with discrete controller (period is used in the controller)

ClockedWithDiscretizedContinuousController

Modelica.Clocked.Examples.SimpleControlledDrive

Simple controlled drive with discretized continuous-time controller

ClockedWith_AD_DA_Effects

Modelica.Clocked.Examples.SimpleControlledDrive

Simple controlled drive with discrete controller and simulated AD and DA effects

SubClocked

Modelica.Clocked.Examples.CascadeControlledDrive

Drive with clocked cascade controller where clocks are defined with sub-sampling and partitions with super-sampling

SuperSampled

Modelica.Clocked.Examples.CascadeControlledDrive

Drive with clocked cascade controller where fastest partition is defined with a clock and slower partition is defined with super-sampling

ControlledMixingUnit

Modelica.Clocked.Examples.Systems

Simple example of a mixing unit where a (discretized) nonlinear inverse plant model is used as feedforward controller

TimeBasedStep

Modelica.Clocked.Examples.Elementary.RealSignals

Example of using the clocked simulation time based Step source block

TickBasedStep

Modelica.Clocked.Examples.Elementary.RealSignals

Example of using the clocked tick based Step source block

TimeBasedSine

Modelica.Clocked.Examples.Elementary.RealSignals

Example of using the clocked time based Sine source block

TickBasedSine

Modelica.Clocked.Examples.Elementary.RealSignals

Example of using the clocked tick based Sine source block

TimeBasedRamp

Modelica.Clocked.Examples.Elementary.RealSignals

Example of using the clocked time based Ramp source block

TickBasedRamp

Modelica.Clocked.Examples.Elementary.RealSignals

Example of using the clocked tick based Ramp source block

TimeBasedStep

Modelica.Clocked.Examples.Elementary.IntegerSignals

Example of using the clocked simulation time based Integer Step source block

TickBasedStep

Modelica.Clocked.Examples.Elementary.IntegerSignals

Example of using the clocked simulation tick/sample based Integer Step source block

TimeBasedStep

Modelica.Clocked.Examples.Elementary.BooleanSignals

Example of using the clocked simulation time based Boolean Step source block

TickBasedStep

Modelica.Clocked.Examples.Elementary.BooleanSignals

Example of using the clocked simulation tick/sample based Boolean Step source block

TimeBasedPulse

Modelica.Clocked.Examples.Elementary.BooleanSignals

Example of using the clocked simulation time based Boolean Pulse source block

TickBasedPulse

Modelica.Clocked.Examples.Elementary.BooleanSignals

Example of using the clock tick based Boolean Pulse source block