Add 3.15.6 example app (for compilation tests)

This commit is contained in:
Ralph Lange
2019-11-20 10:06:53 +01:00
parent 7634107dfb
commit 064b4d3998
30 changed files with 1023 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
program sncExample
double v;
assign v to "{user}:aiExample";
monitor v;
ss ss1 {
state init {
when (delay(10)) {
printf("sncExample: Startup delay over\n");
} state low
}
state low {
when (v > 5.0) {
printf("sncExample: Changing to high\n");
} state high
}
state high {
when (v <= 5.0) {
printf("sncExample: Changing to low\n");
} state low
}
}