EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Record info nodes? Re: PV save and restore tool sought
From: Tim Mooney <[email protected]>
To: Kay-Uwe Kasemir <[email protected]>
Cc: tech talk <[email protected]>
Date: Wed, 01 Aug 2007 10:18:09 -0500


Kay-Uwe Kasemir wrote:
On Jul 31, 2007, at 18:08 , Carl Lionberger wrote:

We had a version of autosave at LBNL that looked at characters stuck in the end of the record description file at boot time, using the static library, to find out what records should be saved.


Yes, one can use the DESC field to add additional information,
like in this case instructions for autosave.
I've also used it to provide additional parameters
to an analog input device module.
But that's of course somewhat of a hack.

I think there is now a better way to do this,
because the Database files support adding non-field
meta information to record instances,
beyond just the values of record fields.
I don't remember the exact syntax, even though Andrew
has pointed it out several times.
I think it's called "info node",
and could be used to add parameters for
autosave, archiving, ... anything to record instances.
Of course you would then also have to write the
tool that reads those info node values
and creates the autosave, archive, ... config files.

I found this in the AppDevGuide (sec 6.12), but I'm not sure how best to use it. VDCT doesn't seem to know about this. I can't find a way to add an info node using VDCT. If I add an info node to a database using a text editor, VDCT doesn't show the node, and it strips the node out next time it writes that database.


For clarity...

On input to VDCT, test.db looks like this:

record(bo, "$(P)myBoRecord") {
  field(DTYP, "Soft Channel")
  info(autosave, "VAL")
}

After saving, the info node is gone:

record(bo, "$(P)myBoRecord") {
  field(DTYP, "Soft Channel")
}


Anyway, assuming VDCT does or will be made to honor this syntax in a database file, I'd like to use it with autosave. One possibility would be for autosave to provide a function that reads databases, looking for nodes that tell it what to do.


Autosave needs to know two things to handle a PV:
1) the name of the PV
2) when, during initialization, that PV should be restored. "When" can be one of "never", "during pass 0", "during pass 1", or "during both passes".


Currently, autosave can apply the "when" choice only to an entire save file, not to an individual PV. (But of course this could change.)



--
Tim Mooney ([email protected]) (630)252-5417
Beamline Controls & Data Acquisition Group
Advanced Photon Source, Argonne National Lab.

References:
PV save and restore tool sought Rock, Judith E.
Re: PV save and restore tool sought Thomas Birke
Re: PV save and restore tool sought Emmanuel Mayssat
Re: PV save and restore tool sought Carl Lionberger
Record info nodes? Re: PV save and restore tool sought Kay-Uwe Kasemir

Navigate by Date:
Prev: EE jobs at NSLS II: FPGA programming and Electrical Dalesio, Leo `Bob`
Next: Re: VxWorks time() Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Record info nodes? Re: PV save and restore tool sought Kay-Uwe Kasemir
Next: Re: PV save and restore tool sought Elder Matias
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·