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: | Optional record alias |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Sun, 11 Jun 2023 17:48:57 +0000 |
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 |