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: Dynamically changing HIHI PV field |
From: | Andrew Johnson via Tech-talk <tech-talk at aps.anl.gov> |
To: | "Marco A. Barra Montevechi Filho" <marco.filho at lnls.br>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Tue, 12 Apr 2022 13:17:43 -0500 |
To explain the "why" behind Torsten's answer, you can look up the data type of the ai record's HIGH field on it's Record Reference page:I have an equipment which has the HIGH field configurable in the hardware. We already have a PV that reads it, but it is currently an entire PV, and not a field of another existing PV.Im trying to get that PV result and put it in the HIGH field of another PV. Something like:
record(ai, "MY:PV") {field(HIHI, 10)field(HIGH, "ANOTHER:PV:HIGH:LIMIT PP")field(LOW, -1)field(LOLO, -5)field(HHSV, MAJOR)field(HSV, MINOR)field(LSV, MINOR)field(LLSV, MAJOR)}
but each try of mine gets either syntax error or 'Can't set "MY:PV.HIGH" to "ANOTHER:PV:HIGH:LIMIT"'. Am i doing something wrong? Is this approach even possible?
Field Summary Type DCT Default Read Write CA PP HIHI Hihi Alarm Limit DOUBLE Yes Yes Yes Yes HIGH High Alarm Limit DOUBLE Yes Yes Yes Yes LOW Low Alarm Limit DOUBLE Yes Yes Yes Yes LOLO Lolo Alarm Limit DOUBLE Yes Yes Yes Yes
record(ao, "$(PREFIX)$(MOTOR_NAME)-CfgVELO-RB_")
{
field(PREC, "$(PREC)")
field(DOL, "$(PREFIX)$(MOTOR_NAME)-CfgVELO-RB CP")
field(OUT, "$(PREFIX)$(MOTOR_NAME).VELO")
field(OMSL, "closed_loop")
}
-- Complexity is free, it's Simplicity that takes work.