Experimental Physics and Industrial Control System
|
Thanks everyone for your input!
Thanks for the suggestion Kay, ill have to look into PCASPY some more but would this be similar to using pyepics as an interface to CA? Right now it looks like either move it to an IOC (pythonIoc), translate it over to C (regular IOC),
or throw some pyepics in the python script and have it run an event loop looking for a PV change.
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of
Kasemir, Kay via Tech-talk
Sent: Friday, April 16, 2021 10:52 AM
To: tech-talk at aps.anl.gov
Subject: Re: Python Script call from Button press, module not found
If the goal is that writing to a PV triggers something in python, wouldn't it be more straight forward to have a python-based CA server?
It serves the "DoIt" PV, and writing to that PV makes the python code do something.
PCASPY, https://pcaspy.readthedocs.io/en/latest/,
allows you to implement just that, without need to first create some 'mailbox' IOC for serving the value, then having a script poll/monitor that PV for changes.
With PCASPY you can also support put-callback, so clients writing to the PV can not only trigger whatever you want to happen, but they can also get notified when the action completes.
|
- References:
- Python Script call from Button press, module not found Manoussakis, Adamandios via Tech-talk
- Re: Python Script call from Button press, module not found Kasemir, Kay via Tech-talk
- RE: Python Script call from Button press, module not found Manoussakis, Adamandios via Tech-talk
- Re: Python Script call from Button press, module not found Matt Newville via Tech-talk
- Re: Python Script call from Button press, module not found Johnson, Andrew N. via Tech-talk
- RE: Python Script call from Button press, module not found Manoussakis, Adamandios via Tech-talk
- Re: Python Script call from Button press, module not found Johnson, Andrew N. via Tech-talk
- Re: Python Script call from Button press, module not found Ben Franksen via Tech-talk
- RE: Python Script call from Button press, module not found Layne (US), William C via Tech-talk
- Re: Python Script call from Button press, module not found Kasemir, Kay via Tech-talk
- Navigate by Date:
- Prev:
Re: WIN_32 Marty Kraimer via Tech-talk
- Next:
RE: WIN_32 Mark Rivers via Tech-talk
- 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: Python Script call from Button press, module not found Kasemir, Kay via Tech-talk
- Next:
Re: Python Script call from Button press, module not found Matt Newville via Tech-talk
- 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, 16 Apr 2021 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|