EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Array data in db files?
From: Michael Davidsaver <[email protected]>
To: [email protected]
Date: Mon, 18 Aug 2014 13:51:03 -0400
On 08/18/2014 01:06 PM, Andrew Johnson wrote:
> ...
>>> Has extending the DB syntax to cover array data been considered at some 
>>> point?
> 
> This will require a change to the record-type interface (RSET) because
> currently it is the record's responsibility to allocate memory for its
> array fields, which can't be done right now until iocInit().

I see no technical requirement to change the interface.

>> One of changes I'm considering (after the linking/locking work) is to
>> re-write the DBD file parser.
> 
> The IOC doesn't really need a DBD file parser at all (although it will
> still need a DB file parser),

Forgive me for being imprecise.  I've never been sure how to refer to
the common syntax of these two file types.

> ...I started that work some time back, and would like to finish it.

:)

>> The idea would be to parse into an intermediate structure which would be
>> more general than dbStatic.  This would define points in the syntax for
>> future expansion, and avoid some of the chicken and egg problems of the
>> present code.
>> 
>> For this specific use case, the intermediate structure would provide an
>> obvious place to keep the original field value text.  Of course this
>> tracking could also be grafted on to dbRecordNode as the info() tags where.
> 
> I will explicitly point out the increased memory requirement to store
> all the original DB field values as text.

Yup.  Strictly speaking, it is only necessary to do this for fields with
SPC_DBADDR.  This shouldn't be a big hit in memory usage.


Attachment: signature.asc
Description: OpenPGP digital signature


References:
Array data in db files? Ralph Lange
Re: Array data in db files? Michael Davidsaver
Re: Array data in db files? Andrew Johnson

Navigate by Date:
Prev: Re: Array data in db files? Andrew Johnson
Next: Re: Array data in db files? Benjamin Franksen
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Array data in db files? Andrew Johnson
Next: Re: Array data in db files? Benjamin Franksen
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 24 Aug 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·