EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  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  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: dbpf before iocInit...
From: "Allison, Stephanie" <[email protected]>
To: "Emmanuel Mayssat" <[email protected]>, "tech_talk" <[email protected]>
Date: Tue, 8 Mar 2005 12:41:47 -0800
Hi,

> So, immediately in the block/template instanciate(record2), I 
> insert dbpf("record1.FLNK","record2").

Part of our IOC startup is to restore values before iocInit using static database utilities.  I don't know of any iocsh entries for dbStatic routines.  You can write a little utility that does something like this:

#include "dbAccess.h"
#include "dbStaticLib.h"
#include "errlog.h"

	long dbpfStatic(char   *pname,char *pvalue) {
	DBENTRY         dbentry;  
	int             status;	
	if (!pdbbase) {
		errlogPrintf("dbpfStatic: No database loaded\n");
		return -1;
	}
	dbInitEntry(pdbbase, &dbentry);	 
	if (!(status = dbFindRecord(&dbentry, pname))) 
		status = dbPutString(&dbentry, pvalue);
	dbFinishEntry(&dbentry);
	return status;
	}

Stephanie Allison


Replies:
Re: dbpf before iocInit... Ralph Lange

Navigate by Date:
Prev: dbpf before iocInit... Emmanuel Mayssat
Next: RE: about Tektronix TDS3000 series oscilloscopesdevice device support liushu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: PCI CAMAC Highway Driver? Graham S Cross
Next: Re: dbpf before iocInit... Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  <20052006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·