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 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 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: write to a single element of an array field |
From: | "Mooney, Tim M. via Tech-talk" <tech-talk at aps.anl.gov> |
To: | EPICS Techtalk <tech-talk at aps.anl.gov>, Benjamin Franksen <benjamin.franksen at helmholtz-berlin.de> |
Date: | Fri, 6 Mar 2020 18:58:04 +0000 |
Well, since no solution has been proposed, I'll give you my awkward and inefficient solution that will, nevertheless, work in a pinch. The following calc _expression_ will make an acalcout record replace the element of array AA, whose index is in the A field,
with the value in the B field:
cat(cat(aa[0,a-1],b),aa[a+1,-1])
Tim Mooney (mooney at anl.gov) (630)252-5417
Beamline Controls Group (www.aps.anl.gov) Advanced Photon Source, Argonne National Lab From: Tech-talk on behalf of Benjamin Franksen via Tech-talk Sent: Thursday, March 5, 2020 12:42 PM To: EPICS Techtalk Subject: write to a single element of an array field Is there an EPICS version where I can write (via link, DB or CA) a
scalar to one specific element (i.e. index) of an array field? I am not as up to date on EPICS development as I used to be, so perhaps this has been added and I missed it, perhaps in 7.x (hope dies last...). Or has anyone written an "inverse subArray" record type I could use to do that? Cheers Ben |