Experimental Physics and Industrial Control System
You can make setIntegerParam affect the setter (i.e. the output record) by using this info tag to that output record:
info(asyn:READBACK, “1”)
You may need to add a poller thread to your driver to detect when IntegrationTime or other parameters have changed outside of EPICS. Call setIntegerParam or setDoubleParam in that thread and then call callParamCallbacks().
Mark
Sent from my iPhone
On Aug 22, 2021, at 3:33 PM, Iain Marcuson via Tech-talk <tech-talk at aps.anl.gov> wrote:
I am working with a derivative of one of the QuadEM packages (namely NSLS_EM). The IOC uses an asynPortDriver with separate setters and getters e.g. Integration time has setter `$(P)$(R)IntegrationTime` and getter `$(P)$(R)IntegrationTime_RBV`. Since the electrometer state can change independently of the IOC, I want to reflect the state changes in the IOC. I use a GUI in CSS BOY, and for the most part only display the setter PVs. Is there a way to have the IOC update the setters, ideally through ASYN? The initial value of Integration Time is reflected in the setter on IOC startup, but attempts at changing setters using setIntegerParam() only change the getter. What might be causing this, and can I affect both setter and getter?
Thank you,
Iain Marcuson
Software Engineer, Sydor Technologies
585.278.1168 | www.SydorTechnologies.com<http://www.SydorTechnologies.com>
Skype: iain.marcuson at sydorinstruments.com
This message has been scanned for malware by Forcepoint. www.forcepoint.com<http://www.forcepoint.com/>
- References:
- Changing setter PVs with asyn and AreaDetector Iain Marcuson via Tech-talk
- Navigate by Date:
- Prev:
RE: Question about retrieve history data in archiver appliance Manoussakis, Adamandios via Tech-talk
- Next:
Re: Question about retrieve history data in archiver appliance neu lzf 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:
Changing setter PVs with asyn and AreaDetector Iain Marcuson via Tech-talk
- Next:
Trouble with macro substitutions Leblanc, Gregory 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