This example is defined in the directory: /home/lbesnard/Polychrony/V4.19/Linux/Examples/watch/SUPER.
This directory contains the supervisor of the complete STOPWATCH program, built by extracting the control parts of its devices. It allows to study the dispatching of external events to the three modes:
The HCHRONO events are synchronous to every M1 system ticks (HE). The scanning of external user events UR and LR is synchronous to HCHRONO events. The internal STOPWATCH events RINGUP (ringing start events) are externally generated. The HSLOW events are synchronous to every M2 HCHRONO events. The scanning of external user events UL, LL and RINGUP is synchronous to HSLOW events. To get the bell ringing, an event BEEP is emitted every PI ticks of HSLOW. The program generates NAL such BEEP events from each ringup unless it is cancelled by a UL, LL, UR or LR event.
signal VTSUPER.SIG -par=VTSUPER.PAR -c
It produces C code in VTSUPER sub-directory.
Goto the VTSUPER sub-directory, then execute the following commands:
make
then
VTSUPER