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  <20222023  2024  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Question about alias name
From: neu lzf via Tech-talk <tech-talk at aps.anl.gov>
To: Michael Davidsaver <mdavidsaver at gmail.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Sun, 18 Sep 2022 00:59:23 +0000
Thanks for your reply.
I am using the version of EPICS Base 3.15.9.


From: Michael Davidsaver <mdavidsaver at gmail.com>
Sent: 16 September 2022 18:35
To: lzfneu at live.com <lzfneu at live.com>
Cc: tech-talk at aps.anl.gov <Tech-talk at aps.anl.gov>
Subject: Re: Question about alias name
 
On 9/15/22 20:00, lzfneu--- via Tech-talk wrote:
> Dear all,
>
> I try to use alias name for my existed pv names, part of the record are as follows:
>
> record (calc, "test")
> {
>      alias("test:alias_name")
>      field(INPA,"test_pv.VAL")
>      field(ADEL, "-1")
>      field(CALC, "A*10")
>      field(EGU, "m")
>      field(FLNK, "test2")
> }
>
> record(calc, "test2")
> {......
>       ......
> }
>
> When I run the IOC, I received the following errors:
> ErrorCan't create alias "test:alias_name" for "test" Error at or before ")" in file "db/ai.template" line XX.
> And XX is the alias filed line number.
>
> Although showed the error messages, the alias PV name "test:alias_name" can normally receive the same data as PV name "test". I have no idea how to correct the error messages.
>
> Any help will be appreciated and thanks in advance.

What version of EPICS Base are you using?

I'm not able to replicate with 7.0.7

> $ cat alias.db
> record (calc, "test")
> {
>         alias("test:alias_name")
>         field(INPA,"test_pv.VAL")
>         field(ADEL, "-1")
>         field(CALC, "A*10")
>         field(EGU, "m")
>         field(FLNK, "test2")
> }> $ softIoc -d alias.db
> Starting iocInit
> ############################################################################
> ## EPICS R7.0.6.2-DEV
> ## Rev. R7.0.6.1-260-ga0a937d0b6ce07c20358
> ## Rev. Date Git: 2022-09-03 11:36:57 -0700
> ############################################################################
> Forward-link uses Channel Access without pointing to PROC field
>     test.FLNK => test2
> iocRun: All initialization complete
> epics>

References:
Question about alias name lzfneu--- via Tech-talk
Re: Question about alias name Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re:Re: rpc.h of Asyn not found in Rocky 9 网易邮件中心 via Tech-talk
Next: Re: EPICS_CA_ADDR_LIST and multiple instances of a SoftIOC on Windows Carsten Winkler 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  <20222023  2024 
Navigate by Thread:
Prev: Re: Question about alias name Michael Davidsaver via Tech-talk
Next: Question regarding synApps:delaygen module Jörn Dreyer 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  <20222023  2024 
ANJ, 19 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·