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:

Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Blocks.Sources.Sine | sine_angle_input | ||
| Modelica.Blocks.Sources.Cosine | cosine_angle_input | ||
| Modelica.Blocks.Sources.Pulse | trigger_interval_input | ||
| Clocked.ClockSignals.Clocks.Rotational.RotationalClock | rotational_clock_1 | ||
| Clocked.ClockSignals.Clocks.Rotational.RotationalClock | rotational_clock_2 | ||
| Clocked.ClockSignals.Clocks.Logical.ConjunctiveClock | conjunctiveClock | ||
| Clocked.ClockSignals.Clocks.Logical.DisjunctiveClock | disjunctiveClock | ||
| Clocked.RealSignals.Sampler.SampleClocked | sample_conjunctive | ||
| Clocked.RealSignals.Sampler.SampleClocked | sample_disjunctive |