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 2025-02-22T19:25:07Z
by OpenModelicaOpenModelica 1.24.4 using GenerateDoc.mos