This example is defined in the directory: /home/lbesnard/Polychrony/V4.19/Linux/Examples/manualExercises
In this directory, the exercises and some examples of the tutorial (http://www.irisa.fr/espresso/Polychrony/document/tutorial.pdf) are implemented. They are classified by chapters.
- The Chapter1 directory contains the WATCHDOG example that introduces the Signal language in the tutorial.
- The Chapter2 directory is empty.
- The Chapter3 directory contains the elementarry examples (monochronous operators, when operator, default operator)
- The Chapter4 directory contains the examples of the cell operator, the modularity and the oversampling.
- The Chapter5 directory contains the more complex applications of the tutorial: interval between events, automata, picture analysis, a railway level crossing.
For each of the examples, you can compile it, test the generated code and sometimes run the simulation.
Recalls:
- To have a complete description of the Signal compiler options, use the command
- To compile a Signal program defined in a file FOO.SIG, with C code generation, you can run the command: It generates the results in the sub-directory FOO (the name of the process)
- To test/simulate the application:
- goto the FOO directory,
- produce the makefile (if necessary) by the command
- produce the executable by the command
make (unix)
or
nmake (windows)
- run the executable by the command
For the simulation with data files, remember that for
- an input X, the associated data file is RX.dat
- an output X, the associated data file is WX.dat. The waited result is kept in the file WX.ok.