AssignClock

Assign a clock to a clocked Real signal

Information

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

This block assigns a clock to the Real input signal u and provides u as output signal y.

Example

The following example shows a discrete counter. In order to execute the counter with a sample period of 20ms an AssignClock block is used. Due to clock inference all equations within the blocks are deduced to be active at the clock ticks given by the periodicClock block.

AssignClock_Model.png     AssignClock_Result.png
model simulation result

At every clock tick (that is at every 20ms) the output of the unitDelay1 block is incremented by one.

Connectors (3)

u

Type: RealInput

Description: Connector of clocked, Real input signal

y

Type: RealOutput

Description: Connector of clocked, Real output signal

clock

Type: ClockInput

Used in Examples (11)

ClockedWith_AD_DA_Effects

Modelica.Clocked.Examples.SimpleControlledDrive

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

Sample1

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a Sample block for Real signals

Sample2

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a Sample block with discontinuous Real input signals

SampleWithADeffects

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a SampleWithADeffects block for Real signals

AssignClock

Modelica.Clocked.Examples.Elementary.RealSignals

Example of a AssignClock block for Real signals

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