Experimental Physics and Industrial Control System
|
Hi Kevin,
What I meant to suggest was to consider taking the python code you are using to turn PV events into electronic-logbook entries out of the SNL code and run that code in a separate process. You might have to change some logic about when logging events get triggered, but that might be as simple as setting a PV flag to mean "log now", and then have the python process look for changes in that PV and act accordingly. Having a long/infinitely-running python process looking for a PV state change and then doing some combination of CA and logging/database interaction is really very easy. I do this all the time. But, to summarize the earlier suggestions: if you are embedding pyepics in SNL, you might need to create a new CA context in the python script with import epics epics.ca.context_create(0) I don't know for sure that this is needed, but from the problems you describe it seems worth trying. --Matt
- Replies:
- Re: SNL sequencer apparently losing connection to underlying network Pearson, Matthew R.
- Re: SNL sequencer apparently losing connection to underlying network Benjamin Franksen
- References:
- Re: SNL sequencer apparently losing connection to underlying network Kevin Meyer
- Re: SNL sequencer apparently losing connection to underlying network Benjamin Franksen
- Re: SNL sequencer apparently losing connection to underlying network Kevin Meyer
- Re: SNL sequencer apparently losing connection to underlying network Benjamin Franksen
- Re: SNL sequencer apparently losing connection to underlying network Matt Newville
- Re: SNL sequencer apparently losing connection to underlying network Kevin Meyer
- Navigate by Date:
- Prev:
Re: display two opi viewers on different monitors Kasemir, Kay
- Next:
Re: SNL sequencer apparently losing connection to underlying network Pearson, Matthew R.
- 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: SNL sequencer apparently losing connection to underlying network Kevin Meyer
- Next:
Re: SNL sequencer apparently losing connection to underlying network Pearson, Matthew R.
- 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
|
ANJ, 06 Dec 2016 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|