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  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Re: Static Database Access
From: Michael Davidsaver via Tech-talk <tech-talk at aps.anl.gov>
To: 顾月良 <guyl at sari.ac.cn>
Cc: tech-talk at aps.anl.gov
Date: Thu, 7 Sep 2023 13:36:48 +0200
On 9/6/23 10:03, 顾月良 via Tech-talk wrote:

when I compiled the above source file and run the executable, the program complained in the routine of dbCreateRecord as follows:

call dbCreateRecord ...
         *** Did you run x_RegisterRecordDeviceDriver(pdbbase) yet? ***
dbAllocRecord(EventRecord) with event rec_size = 0
call dbCreateRecord completed!


what should I do in my source file to solve this problem? Thanks!

dbStaticLib is not so far a generic .db file parser.
It must have a full database definition.  (it has no
abstract syntax tree)

You need to compile in, and then run, some RRDD function.
If you are working only with Base record types, then you
could imply use base.dbd.  eg. in your Makefile do what
is normally done when building an IOC executable.

myprod_DBD += base.dbd

myprod_SRC += myprod_registerRecordDeviceDriver.cpp


Then:

dbLoadDatabase("myprod.dbd", ...)
myprod_registerRecordDeviceDriver(pdbbase)



References:
Static Database Access 顾月良 via Tech-talk

Navigate by Date:
Prev: Re: EPICS try to compile on Windows: module machine type 'x86' conflicts with target machine type 'x64' Solved Heinz Junkes via Tech-talk
Next: Re: 'CAS-client' failed in ../../../src/ioc/db/dbEvent.c line 781 Michael Davidsaver via Tech-talk
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  <20232024 
Navigate by Thread:
Prev: Static Database Access 顾月良 via Tech-talk
Next: Parse multiple waveforms in stream device Abdalla Ahmad via Tech-talk
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  <20232024 
ANJ, 07 Sep 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·