Model of a pendulum clock with alarm
This package includes the implementation of a pendulum clock
with alarm. A complete description of the system and its
implementation using the CD++ environment can be found
here
The clock is guided by the oscillation of a pendulum, and counts
the minutes and hours. It also has an alarm system that is checked
and activated when required.
The clock and the alarm can be configured using the input
ports.
Simulation
The Clock system is implemented in the testClock model. Three
variables have been included to facilitate the observation of the
results.
- hour shows the position of the hour hand.
- min shows the position of the minutes hand.
- alarm shows the activation of the alarm.
The testNoAlarm model includes the Clock system without the alarm
subsystem. In this case, two variables have been included to
observe the results.
- hour shows the position of the hour hand.
- min shows the position of the minutes hand.
Contents
Generated at 2026-04-15T18:18:36Z by OpenModelicaOpenModelica 1.26.3 using
GenerateDoc.mos