EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: Optional record alias
From: Mark Rivers via Tech-talk <tech-talk at aps.anl.gov>
To: "Shen, Guobao" <gshen at anl.gov>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 12 Jun 2023 03:03:50 +0000
I am using 7.0.7.

Sent from my iPhone

On Jun 11, 2023, at 9:24 PM, Shen, Guobao <gshen at anl.gov> wrote:



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>
Date: Sunday, June 11, 2023 at 12:49 PM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: Optional record alias

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

 


Replies:
Re: Optional record alias Ralph Lange via Tech-talk
References:
Optional record alias Mark Rivers via Tech-talk
Re: Optional record alias Shen, Guobao via Tech-talk

Navigate by Date:
Prev: Re: Optional record alias Shen, Guobao via Tech-talk
Next: Re: Optional record alias Ralph Lange via Tech-talk
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  <20232024 
Navigate by Thread:
Prev: Re: Optional record alias Shen, Guobao via Tech-talk
Next: Re: Optional record alias Ralph Lange via Tech-talk
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  <20232024 
ANJ, 12 Jun 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·