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: EPICS record name question
From: Rolf Keitel via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Mon, 23 Jan 2023 20:11:00 +0000

Working on upgrades to my tdct database configuration tool, I am struggling to find a definition for what constitutes a valid EPICS record name.

Looking at the documentation for ‘EPICS Process Database Concepts’ I could not find one. Maybe it’s just my old eyes.


The only thing I could find is in the Application Developer’s Guide for 3.16.2  (the latest I could find. Is there none for EPICS 7?) it says in section 6.3.2 (as it did as long as I can remember)
Begin of quote:
In the summary section, some values are shown as quoted strings and some unquoted. The actual rule is that any string consisting of only the following characters does not need to be quoted unless it contains one of the above keywords:

a-z A-Z 0-9 _ + - : . [ ] < > ;

These are all legal characters for process variable names, although . is not allowed in a record name since it separates the record from the field name in a PV name. “
End of quote

This sentence tells me what’s legal for a record name, but not what a legal record name is.

 

So I made a database:

 

record(ai,"T12345") {

    field(SCAN,".2 second")

    field(INP,"12345")

    field(LINR,"LINEAR")

}

record(ai,"12345") {

    field(SCAN,".2 second")

    field(LINR,"LINEAR")

}

 

To my surprise the IOC loads this database, I can issue dbpr and dbpf to the record 12345, and I can caget and caput.
Of course the link INP in T12345 is a constant link and T12345 will always have the value 12345.

 

Admittedly, this is all a bit pathological and setting the INP to 12345.VAL instead of 12345, makes things work.

But that brings me back to my original question: what is the definition of a valid EPICS record name.

 

Happy New Year   - rolf -

 

Rolf Keitel, Ph.D

TRIUMF, 4004 Wesbrook Mall

Vancouver, BC, V6T 2A3

Tel.: 604 222 7453

e-mail: rolf at triumf.ca

 

-- The old generation has to die off so that a new set of idiots can make the same mistakes all over again --

 


Replies:
Re: EPICS record name question Maren Purves via Tech-talk
Re: EPICS record name question Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: Re: Weird behaviour in wait=True when using epics.Motor.get(something, something, wait=True) Torsten Bögershausen via Tech-talk
Next: Re: [Ext] Re: Which VMEbus CPU for EPICS7 and RTEMS? Bill Lavender 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: Which VMEbus CPU for EPICS7 and RTEMS? Chris Johns via Tech-talk
Next: Re: EPICS record name question Maren Purves 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, 21 Jun 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·