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  <20172018  2019  2020  2021  2022  2023  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  <20172018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: PV / record name length
From: Andrew Johnson <[email protected]>
To: <[email protected]>
Date: Fri, 28 Jul 2017 12:04:48 -0500
On 07/28/2017 11:51 AM, Till Straumann wrote:
> I see that some places (e.g., dbAccess.c: getLinkValue()) impose a limit
> of MAX_STRING_SIZE (still 40).
> How does that play with the PVNAME_STRINGSZ of 61 (base 3.15.5) ?

The use of MAX_STRING_SIZE in dbAccess.c: getLinkValue() is not related
to the PV name length, it's just that a DBF_STRING type is (and will
probably always have to be) fixed at 40 characters. You can use a
DBR_CHAR array type to get strings of any length through the dbAccess
dbGet() API, it does correctly adjust for any length of the underlying
DBF_STRING field (e.g. CALC fields are currently 80 chars).

- Andrew

> On 07/28/2017 08:44 AM, Ralph Lange wrote:
> 
>> Since this may break existing IOCs, I do not expect your suggestion to
>> be accepted into upstream Base easily.
>>
>> Allowing record names of arbitrary length (i.e. allocated) would not
>> increase memory consumption for existing installations, but needs a
>> lot more drastic code changes in crucial places of Base, of course.

+1

-- 
Arguing for surveillance because you have nothing to hide is no
different than making the claim, "I don't care about freedom of
speech because I have nothing to say." -- Edward Snowdon

Replies:
Re: PV / record name length Andrew Johnson
References:
PV / record name length Sebastian Marsching
RE: PV / record name length Mark Rivers
Re: PV / record name length Sebastian Marsching
Re: PV / record name length Ralph Lange
Re: PV / record name length Till Straumann

Navigate by Date:
Prev: Re: PV / record name length Till Straumann
Next: RE: IOC error message on camonitor disconnect freddie.akeroyd
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: PV / record name length Till Straumann
Next: Re: PV / record name length Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·