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  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: IOC, QServ, and AMSG / alarm.message
From: "Johnson, Andrew N. 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: Tue, 18 Feb 2025 00:02:29 +0000

 

On 2/17/25, 12:16PM, "Michael Davidsaver" <mdavidsaver at gmail.com> wrote:

 

I find myself asking, how should this typo have been detected?
 
So far, for reasons of forward compatibility, warnings about unknown keys are not
printed by default.  Using the "debug" link support will turn them on.
 
>    field(INP,{debug:{pva:{pv:"$(P):$(R):CALC", serv: "MS", proc:"CP"}}})
 
Prints:
 
> pva link parsing unknown string depth=1 key="serv" value="MS"
> pvaLink pvaOpenLink fails P:R:SIMULATED: DBLINK* corrupt
> iocRun: All initialization complete
 
At least right now, this does not strike me as a satisfactory answer.
 

The debug link support plugin was intended more for developers of link support types than for users. It’s a bit too clunky for regular use, but handy to have when debugging the link code. A link type should register a global variable if it wants to allow messages about unknown keys to be suppressed, printed as warnings, or made into errors that abort loading, using the iocsh var command to set it. I would default it to warning.

 

- Andrew

 

-- 

Complexity comes for free, Simplicity you have to work for.

 

References:
IOC, QServ, and AMSG / alarm.message Ivan Finch - STFC UKRI via Tech-talk
Re: IOC, QServ, and AMSG / alarm.message Michael Davidsaver via Tech-talk
Re: IOC, QServ, and AMSG / alarm.message Aqeel Alshafei - STFC UKRI via Tech-talk
Re: IOC, QServ, and AMSG / alarm.message Michael Davidsaver via Tech-talk
Re: IOC, QServ, and AMSG / alarm.message Aqeel Alshafei - STFC UKRI via Tech-talk
Re: IOC, QServ, and AMSG / alarm.message Michael Davidsaver via Tech-talk
Re: IOC, QServ, and AMSG / alarm.message Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Calc record with two CP input links ending up in inconsistent state Érico Nogueira Rolim via Tech-talk
Next: Re: Calc record with two CP input links ending up in inconsistent state Michael Davidsaver 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  2023  2024  <2025
Navigate by Thread:
Prev: Re: IOC, QServ, and AMSG / alarm.message Michael Davidsaver via Tech-talk
Next: RE: IOC, QServ, and AMSG / alarm.message Ivan Finch - STFC UKRI 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  2023  2024  <2025
ANJ, 18 Feb 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·