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: | Control SCAN field with ai record |
From: | Stainer Tom via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Wed, 19 May 2021 12:20:43 +0000 |
Dear Epics Community, I have a simple problem that I am sure has been asked before but my previous searches came up blank on tech-talk, so please forgive me if it is trivial. I have a simple database, consisting of two records, as shown below. This works fine, and is one of the most elementary databases you can conceive of, however, you will notice the two commented out lines. My desire is to have the SCAN field controlled by the “scan:ai1” PV, so I can do some *caput*s to control the scan, say to go from 0.1 second to 2 seconds. My commented out lines obviously don’t work, but I wondered how this would be possible using the database file. Does anyone have any tips on how to solve this problem? (Or please point me to previous/similar solutions.) # mydb.db ------------------------------- record(ai, "scan:ai1") { field(INP, ".1") } record(calcout, "scan:calc1"){ # field(SCAN, "B second") # field(INPB, "scan:ai1") field(SCAN, ".5 second") field(INPA, "scan:calc1.VAL") field(CALC, "(A<20)?(A+1):0") } ------------------------------- Kind regards, Tom |