AssignClockAssign a clock to a clocked Real signal |
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.
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.
model | simulation result |
At every clock tick (that is at every 20ms) the output of the unitDelay1 block is incremented by one.
u |
Type: RealInput Description: Connector of clocked, Real input signal |
|
---|---|---|
y |
Type: RealOutput Description: Connector of clocked, Real output signal |
|
clock |
Type: ClockInput |
Modelica.Clocked.Examples.SimpleControlledDrive Simple controlled drive with discrete controller and simulated AD and DA effects |
|
Modelica.Clocked.Examples.Elementary.RealSignals Example of a Sample block for Real signals |
|
Modelica.Clocked.Examples.Elementary.RealSignals Example of a Sample block with discontinuous Real input signals |
|
Modelica.Clocked.Examples.Elementary.RealSignals Example of a SampleWithADeffects block for Real signals |
|
Modelica.Clocked.Examples.Elementary.RealSignals Example of a AssignClock block for Real signals |
|
Modelica.Clocked.Examples.Elementary.RealSignals Example of using the clocked simulation time based Step source block |
|
Modelica.Clocked.Examples.Elementary.RealSignals Example of using the clocked tick based Step source block |
|
Modelica.Clocked.Examples.Elementary.RealSignals Example of using the clocked time based Sine source block |
|
Modelica.Clocked.Examples.Elementary.RealSignals Example of using the clocked tick based Sine source block |
|
Modelica.Clocked.Examples.Elementary.RealSignals Example of using the clocked time based Ramp source block |
|
Modelica.Clocked.Examples.Elementary.RealSignals Example of using the clocked tick based Ramp source block |