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 10:46:57 -0400
On 08/18/2014 09:45 AM, Ralph Lange wrote:
> Just thinking aloud...
> 
> I remember a number of situations where users were complaining about not 
> being able to set array data from within the .db file. (To specify 
> default values for waveform or compress records.)

Yes this would be nice.

Practically speaking, autosave takes are of most of these cases.  At
NSLS2, several devices take array input (function generators of one kind
or another).  Here a default of an empty, or all zeros, array is acceptable.

> Right now I am facing (reviewing) design documents of device support for 
> a very versatile card that supports routing its inputs and outputs to a 
> multitude of PCI/PCIe backplane signals. Stuff that cries for mbbi/mbbo 
> type records that are not limited to 16 states. If option strings, 
> values, severities were arrays, such records might be fairly easy to 
> implement.

For the mrfioc2 driver I had to deal with this problem (as you may
remember ;).  The workaround was to have three mbbi/o records and a
combination of UNSV and IVOA to handle some of the ~30 possibilities in
each mbbo.

> Has extending the DB syntax to cover array data been considered at some 
> point?

One of changes I'm considering (after the linking/locking work) is to
re-write the DBD file parser.

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.


Attachment: signature.asc
Description: OpenPGP digital signature


Replies:
Re: Array data in db files? Andrew Johnson
Re: Array data in db files? Benjamin Franksen
References:
Array data in db files? Ralph Lange

Navigate by Date:
Prev: Array data in db files? Ralph Lange
Next: Re: Array data in db files? Andrew Johnson
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: Array data in db files? Ralph Lange
Next: Re: Array data in db files? Andrew Johnson
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 ·