modelLogicalSample

Simple example of conjunctive and disjunctive logical clocks, combining clock signals to derive new event driven clocks.

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

Simple example of two logical clocks, a conjunctive and a disjunctive clock. Both receive the very same clock inputs, produced by two rotational clocks with slightly shifted input angle waves (sine and cosine respectively). The configuration and results of the rotational clocks are explained in the rotational clocks example. The generated clocked signals of the disjunctive and conjunctive clock are therefore:

LogicalSample_Result.png
.

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.Sinesine_angle_input
Modelica.Blocks.Sources.Cosinecosine_angle_input
Modelica.Blocks.Sources.Pulsetrigger_interval_input
Clocked.ClockSignals.Clocks.Rotational.RotationalClockrotational_clock_1
Clocked.ClockSignals.Clocks.Rotational.RotationalClockrotational_clock_2
Clocked.ClockSignals.Clocks.Logical.ConjunctiveClockconjunctiveClock
Clocked.ClockSignals.Clocks.Logical.DisjunctiveClockdisjunctiveClock
Clocked.RealSignals.Sampler.SampleClockedsample_conjunctive
Clocked.RealSignals.Sampler.SampleClockedsample_disjunctive