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
<2005>
2006
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
<2005>
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|