WOLFRAM SYSTEM MODELER

PeriodicRealClock

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

Wolfram Language

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

Information

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

Description: Period of clock (defined as Real number)

Connectors (1)

y

Type: ClockOutput

Description: 'output Clock' as connector

Used in Examples (36)

ClockedWithDiscreteTextbookController

Modelica_Synchronous.Examples.SimpleControlledDrive

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

ClockedWithDiscreteController

Modelica_Synchronous.Examples.SimpleControlledDrive

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

ClockedWithDiscretizedContinuousController

Modelica_Synchronous.Examples.SimpleControlledDrive

Simple controlled drive with discretized continuous-time controller

ClockedWith_AD_DA_Effects

Modelica_Synchronous.Examples.SimpleControlledDrive

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

SubClocked

Modelica_Synchronous.Examples.CascadeControlledDrive

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

SuperSampled

Modelica_Synchronous.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_Synchronous.Examples.Systems

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

TimeBasedStep

Modelica_Synchronous.Examples.Elementary.IntegerSignals

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

TickBasedStep

Modelica_Synchronous.Examples.Elementary.IntegerSignals

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

TimeBasedStep

Modelica_Synchronous.Examples.Elementary.BooleanSignals

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

TickBasedStep

Modelica_Synchronous.Examples.Elementary.BooleanSignals

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

TimeBasedPulse

Modelica_Synchronous.Examples.Elementary.BooleanSignals

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

TickBasedPulse

Modelica_Synchronous.Examples.Elementary.BooleanSignals

Example of using the clock tick based Boolean Pulse source block

TestFIR_1

Modelica_Synchronous.WorkInProgress.Tests

TestFIR

Modelica_Synchronous.WorkInProgress.Tests

TestFIR_Step

Modelica_Synchronous.WorkInProgress.Tests

TestFIR_Step2

Modelica_Synchronous.WorkInProgress.Tests

TestFIR_Step2b

Modelica_Synchronous.WorkInProgress.Tests

TestInterpolator

Modelica_Synchronous.WorkInProgress.Tests

TestUnitDelay

Modelica_Synchronous.WorkInProgress.Tests

TestTransferFunction

Modelica_Synchronous.WorkInProgress.Tests

TestStateSpace

Modelica_Synchronous.WorkInProgress.Tests

TestRealSampler

Modelica_Synchronous.WorkInProgress.Tests

TestShiftSample

Modelica_Synchronous.WorkInProgress.Tests

TestClockedRealToTrigger

Modelica_Synchronous.WorkInProgress.Tests

TestClockedBooleanToTrigger

Modelica_Synchronous.WorkInProgress.Tests

TestClockedIntegerToTrigger

Modelica_Synchronous.WorkInProgress.Tests

TestBackSample

Modelica_Synchronous.WorkInProgress.Tests

TestClockedRealToSquare

Modelica_Synchronous.WorkInProgress.Tests

TestIntegerSamplerAndHolds

Modelica_Synchronous.WorkInProgress.Tests

TestBooleanSamplerAndHolds

Modelica_Synchronous.WorkInProgress.Tests

TestReplaceableSamplerHold

Modelica_Synchronous.WorkInProgress.Tests

Using partial sample and hold blocks to allow redeclaration of blocks to simulated communication blocks

TestSimulatedADC

Modelica_Synchronous.WorkInProgress.Tests

TestCommunicationDelay

Modelica_Synchronous.WorkInProgress.Tests

SuperSampling

Modelica_Synchronous.WorkInProgress.Tests.Effects

Different ways to super sample a signal

TheDifferentClocks

Modelica_Synchronous.WorkInProgress.ForDocumentation

Used in Components (7)

TimeBasedStep

Modelica_Synchronous.Examples.Elementary.RealSignals

Example of using the clocked simulation time based Step source block

TickBasedStep

Modelica_Synchronous.Examples.Elementary.RealSignals

Example of using the clocked tick based Step source block

TimeBasedSine

Modelica_Synchronous.Examples.Elementary.RealSignals

Example of using the clocked time based Sine source block

TickBasedSine

Modelica_Synchronous.Examples.Elementary.RealSignals

Example of using the clocked tick based Sine source block

TimeBasedRamp

Modelica_Synchronous.Examples.Elementary.RealSignals

Example of using the clocked time based Ramp source block

TickBasedRamp

Modelica_Synchronous.Examples.Elementary.RealSignals

Example of using the clocked tick based Ramp source block

TestPIDController

Modelica_Synchronous.WorkInProgress.Incubate