Patrick Thomas wrote:
Hi,
How would one go about including one .stt file as a header in another?
I tried to do this with %%#include "....stt", but it does not seem to
be finding the variables that are assigned to process variables in the
included file. My makefile uses the following, where sncMyExample.stt
is the sequencer code that I want to have include another .stt file.
ifneq ($(SNCSEQ),)
# Build sncExample into h1_tcs_itmx_pwrSupport
sncExample_SNCFLAGS += +r
sncMyExample_SNCFLAGS = +m
h1_tcs_itmx_pwr_DBD += sncExample.dbd
h1_tcs_itmx_pwr_DBD += sncMyExample.dbd
h1_tcs_itmx_pwrSupport_SRCS += sncExample.stt
h1_tcs_itmx_pwrSupport_SRCS += sncMyExample.stt
h1_tcs_itmx_pwrSupport_LIBS += seq pv
h1_tcs_itmx_pwr_LIBS += seq pv
# Build sncProgram as a standalone program
PROD_HOST += sncProgram
sncProgram_SNCFLAGS += +m
sncProgram_SRCS += sncProgram.st
sncProgram_LIBS += seq pv
sncProgram_LIBS += $(EPICS_BASE_HOST_LIBS)
endif
Thank you,
Patrick
Patrick,
Just saw your post. It just sounds like your code needs to be
c-preprocessed. In the case of the epics build system just rename you
files .st instead of .stt. That should at least get you closer to the
functionality you want. I'm not sure about how you would "include" a
.st file however. Are you just trying to prevent assigning variable in
a separate sequencer?
Wesley
begin:vcard
fn:Wesley Moore
n:Moore;Wesley
org:Thomas Jefferson National Accelerator Facility;Free Electron Laser
adr:Suite 19, MS 18;;12000 Jefferson Avenue;Newport News;VA;23606;USA
email;internet:[email protected]
title:FEL Computer Scientist
tel;work:(757) 269-6033
tel;fax:(757) 269-6384
tel;pager:(757) 584-6033
url:http://www.jlab.org/FEL/
version:2.1
end:vcard
- References:
- including one .stt file as a header in another Patrick Thomas
- Navigate by Date:
- Prev:
Re: How to use process variable Ralph Lange
- Next:
Process Variable. z abdou
- 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:
including one .stt file as a header in another Patrick Thomas
- Next:
get_ioint_info missing Hinko Kocevar
- 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
|