Experimental Physics and
| |||||||||||||||
|
hi, I want to define some marco in stt file, for example, "#define N 3" to the example coming with exampleApp, when compiling it, it shows: compiling ../sncExample.stt to C
/usr/local/epics/r3.14.12.5/base/../modules/seq-2.2.3/bin/linux-x86/snc +r ../sncExample.stt -o sncExample.c ../sncExample.stt:6: lexical error: invalid character ../sncExample.stt:6: syntax error near token '' ../sncExample.stt:6: parser giving up make[3]: *** [sncExample.c] Error 1 what's the reason? I did remember others use "define" in stt file, for example, procServControl. thanks a lot for your help. -------------------------------sncExample.stt---------------------- program sncExample
double v; assign v to "{user}:aiExample"; monitor v; #define N1 3 /*just add this line*/ 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 } }
Best wishes
Geyang 2016-03-30
| ||||||||||||||
ANJ, 15 Jul 2016 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |