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: Optional record alias |
From: | "Shen, Guobao via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Mark Rivers <rivers at cars.uchicago.edu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Mon, 12 Jun 2023 02:24:12 +0000 |
Hi Mark, Did you try R7? Guess you are with R3.14 or 3.15? There was a tech-talk thread seems quite similar with yours. https://epics.anl.gov/tech-talk/2022/msg01430.php The original EPICS version was with R3.15.9. When I was trying the same db file with R7.0.3, its example db works fine. Thanks, Guobao From:
Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> Folks, This is my first time trying to use a record alias. I would like to have a database file that looks like this: record(bi, "$(P)$(R)") { field(DESC, "$(DESC=)") field(DTYP, "asynUInt32Digital") field(INP, "@asynMask($(PORT),$(ADDR),$(MASK))DIGITAL_INPUT") field(ZNAM, "$(ZNAM=Low)") field(ZSV, "$(ZSV=NO_ALARM)") field(ONAM, "$(_ONAM_=High)") field(OSV, "$(OSV=NO_ALARM)") field(SCAN, "I/O Intr") alias( "$(ALIAS=)") } The DESC macro defaults to an empty string, which is works fine. I would also like to have the ALIAS macro be optional, so that one can
optionally define a record alias. This does not work, it leads to this error when loading the database. dbLoadRecords: failed to load '$(MEASCOMP)/measCompApp/Db/measCompBinaryIn.template' Error: Error: Record/Alias name can't be empty at or before ')' in file "/corvette/home/epics/support/measComp-4-1/measCompApp/Db/measCompBinaryIn.template" line 11 Error: syntax error Is it possible to have an optional ALIAS? Thanks, Mark |