Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
<== Date ==> <== Thread ==>

Subject: Who can help with dbLoadRecords()?
From: "Liyu, Andrei" <liyua@ornl.gov>
To: tech talk <tech-talk@aps.anl.gov>
Date: Mon, 01 May 2006 09:14:18 -0400
Good morning All,

	Any of you use dbLoadRecords( char * dbfile, char *
substitutions) or dbLoadTemplate(). 

	It's fine but I have another question :) Both functions read
file. I wouldn't catch your attention why I need something because it is
another area of distributed control system. Let say - I need function
	dbLoadRecordsNew( char * records, char * substitutions), where
records is usual db file.

	I looked into code and was very unhappy. dbLoadRecords comes to
dbReadDatabase( ... char * filename ...). That was written so far ... on
yacc (???). Basically, code hasn't comments and isn't self-documented.
Application Development doesn't give information too. I couldn't find
function like dbLoadRecordsNew. Is it correct?

	I thought a little and decided that way to write simple
dbLoadSingleRecord( char * record) function can be easier (then
understand dbReadDatabase() )

	I suppose that should be like
1. There is global variable DBBASE *pdbase that is root Epics DB.
(Manual writes that IOC can have some DBs ... = some pdbase. Is it
correct?)
So first is allocation DB root dbAllocBase()
2. Each record has entry in pdbase.
Call DBENTRY * dbAllocEntry(DBBASE *pdbase). That allocates memory for
entry (!= for record) (?) and link into root.
3. Allocate memory for record. Call malloc with according record?
4. Fill record structure
...
And IOCInit()

Has anybody knowledge? Can he help me a little?

Thanks, Andrei.


Replies:
Re: Who can help with dbLoadRecords()? Benjamin Franksen

Navigate by Date:
Prev: Re: asyn and Canberra TCA 2016 Tim Mooney
Next: Digitizer needed for LCLS Steve Lewis
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
Navigate by Thread:
Prev: SNS reaches CD4 milestone!! Gurd, David P.
Next: Re: Who can help with dbLoadRecords()? Benjamin Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·