Experimental Physics and Industrial Control System
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
- Replies:
- Re: sequencer error Ralph Lange
- Navigate by Date:
- Prev:
TwinCAT-EPICS IOC tcioc [SEC=UNCLASSIFIED] K*, Shaun
- Next:
Re: sequencer error Ralph Lange
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
TwinCAT-EPICS IOC tcioc [SEC=UNCLASSIFIED] K*, Shaun
- Next:
Re: sequencer error Ralph Lange
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
<2016>
2017
2018
2019
2020
2021
2022
2023
2024