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  <20132014  2015  2016  2017  2018  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Would like to add regular expressions to dbpr
From: Benjamin Franksen <[email protected]>
To: <[email protected]>
Date: Tue, 7 May 2013 22:05:21 +0200
Am Dienstag, 7. Mai 2013, 20:45:38 schrieb Andrew Johnson:
> On 2013-04-30 Zelazny, Michael Stanley wrote:
> > Motivation: Currently the SLAC electron beam line controls group uses an
> >
> >  IRMIS crawler to get PV information into the RDB by crawling every IOCs
> >  st.cmd.  Our engineers add new, but valid, syntax that results in us
> >  having to massage that crawler quite a bit.  I would like to add a
> >  command to all of our IOC startup scripts that generates a list of PVs
> >  and fields
> >
> >  that can easily crawled and inserted into the IRMIS RDB.  Example:
> > iocshCmd("dbpr(*,5,1) >/data/iocInfo/IOC.pvEveryField")
> >
> > Opinions?
>
> You can already use the command below on vxWorks to generate a .db file
> containing all the non-default design-time field values of all record
> instances currently loaded by the IOC:
>     dbDumpRecord(pdbbase,0,0) > all.db
>
> I think this should also work from RTEMS under CEXP, but iocsh doesn't have
> any way of passing a NULL as the second argument (the record type name
> string) which is currently necessary to dump all record types.  You'd have
> to issue one command for each record type to use this command from iocsh
> with existing versions of Base, although I will fix that to accept '*' or
> an empty string.

BTW, it is a trivial exercise to add that to an existing installation without
modifying base by wrapping the dbDumpRecord in a C function (passing it NULL
pointers) and exporting this C function to the shell using the standard tools
(epicsExport.h, iocsh.h). No need to wait for the next base release... ;-)

Cheers
--
Ben Franksen
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachm€nts

________________________________

Helmholtz-Zentrum Berlin für Materialien und Energie GmbH

Mitglied der Hermann von Helmholtz-Gemeinschaft Deutscher Forschungszentren e.V.

Aufsichtsrat: Vorsitzender Prof. Dr. Dr. h.c. mult. Joachim Treusch, stv. Vorsitzende Dr. Beatrix Vierkorn-Rudolph
Geschäftsführung: Prof. Dr. Anke Rita Kaysser-Pyzalla, Thomas Frederking

Sitz Berlin, AG Charlottenburg, 89 HRB 5583

Postadresse:
Hahn-Meitner-Platz 1
D-14109 Berlin

http://www.helmholtz-berlin.de


References:
Would like to add regular expressions to dbpr Zelazny, Michael Stanley
Re: Would like to add regular expressions to dbpr Andrew Johnson

Navigate by Date:
Prev: Re: Would like to add regular expressions to dbpr Andrew Johnson
Next: RE: CSS 3.1.x PVManager / JCA ClassCastException Carcassi, Gabriele
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Would like to add regular expressions to dbpr Andrew Johnson
Next: Thread Handle Leak: EPICS Base on Windows giles.knap
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·