EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20222023  2024  2025  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  <20222023  2024  2025 
<== Date ==> <== Thread ==>

Subject: Re: Disable PVs processing based on some condition
From: Rolf Keitel via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Mon, 14 Nov 2022 05:13:07 -0800
Title: signature text

Hi Abdalla,

If the PVs for which you want to control processing all process at the same rate (and are on the same IOC), you could also use event processing and control the event record.

One thing to keep in mind, though: Disabled records can still change their values (by db puts and CA puts). In order to prevent disruptive changes to your system, you may alwo want to set/unset the DISP field which prevents at least value changes via CA puts.

Take care - rolf -

On 2022-11-14 12:09 a.m., Abdalla Ahmad via Tech-talk wrote:
Hello

I would like to disable processing for certain PVs based on some condition, I used the DISA field by writing 1 to it in a dfanout record from a calcout record (OUT field). The setup is working fine but with a strange behavior (which might be expected). Writing anything to DISA does not take effect until the PV is processed, so I had to make another fanout record only to process those PVs whenever the calcout record is processed (FLNK). Now assume if the condition is met and the PVs got disabled, if you write anything to the PV, it will not process it but on the next change from calcout. This can be problematic in certain setups. Is there any way to avoid writing at all when the PV is disabled? Or a better way to disable PVs? Thanks.

Abdalla Al-Dalleh
Control Engineer
SESAME (Synchrotron-light for Experimental Science and Applications in the Middle East)
P.O. Box 7, Allan 19252, Jordan
Tel: +96253511348 , ext. 265
Fax: +96253511423
abdalla.ahmad at sesame.org.jo<mailto:abdalla.ahmad at sesame.org.jo>
www.sesame.org.jo<http://www.sesame.org.jo>


--
Rolf Keitel, Ph.D.
Researcher Emeritus
Office:
TRIUMF, 4004 Wesbrook Mall
Vancouver, BC, V6T 2A3
604 222 7453
Home:
4158 West 13th Ave
Vancouver, BC, V6R 2T6
604 228 0594
e-mail: rolf at triumf.ca

References:
Disable PVs processing based on some condition Abdalla Ahmad via Tech-talk

Navigate by Date:
Prev: Re: Allied Vision Alvium Camera streaming issue Sandeep Kumar Malu - STFC UKRI via Tech-talk
Next: Re: [EXTERNAL] Phoebus: Find/Replace and Write XML file Kasemir, Kay 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  <20222023  2024  2025 
Navigate by Thread:
Prev: Re: Disable PVs processing based on some condition Maren Purves via Tech-talk
Next: Allied Vision Alvium Camera streaming issue Sandeep Kumar Malu - STFC UKRI 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  <20222023  2024  2025 
ANJ, 14 Nov 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·