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