Subject: |
Difficulties with my Sequencer program |
From: |
"Szalata, Zenon M." <[email protected]> |
To: |
"EPICS Techtalk" <[email protected]> |
Date: |
Mon, 20 Oct 2008 14:06:24 -0700 |
I am using seq-R2-0-11 and vxWorks 6.6.
I have written a simple sequencer program, which monitors a PV and when the epics record processes, it saves the data from the PV to a disk file. The data written to disk is an ascii coded string, which contains configuration data for a VME module. All of this works flawlessly with one module.
I have a few such modules and I want to keep the configuration data in separate files, so this is what I tried:
1. I have coded my sequencer program such that I pass to it information using a macro, which is used to select which PV to monitor and get data from and what file name to use.
2. I start a few instances of the same program, one for each module.
I realized that this does not work. Looking at the manual for clues I see that the program must be made reentrant. Hence, I added option +r; to my program, but now it does not compile. Here are some details:
In the program I have a few routines written in C coded as escaped to C. In the declaration part of the program I define a few variables, e.g. int update;. With the option +r; statement added, the C escaped routines no longer have access to the variables declared in the declaration part. I get a number of error messages like:
"../sncFFF.st:120: error: 'update' undeclared (first use in this function)"
When I examine the sncFFF.c code generated with the +r option and without, I do not see any significant difference.
I am stuck now and any help or suggestions will be greatly appreciated.
Zen
- Replies:
- RE: Difficulties with my Sequencer program Mark Rivers
- RE: Difficulties with my Sequencer program Erik Johansson
- Navigate by Date:
- Prev:
Re: EPICS and CAN field bus Graham Waters
- Next:
RE: Difficulties with my Sequencer program Mark Rivers
- 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:
RE: EPICS and CAN field bus David Beauregard
- Next:
RE: Difficulties with my Sequencer program Mark Rivers
- 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
|