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

Subject: Re: calling dbGetField in init_record
From: Tim Mooney <[email protected]>
To: Dehong Zhang <[email protected]>
Cc: [email protected]
Date: Wed, 24 Sep 2008 12:27:41 -0500
Dehong, You can't get a value from another record at init_record time. In fact,
you wouldn't want the value even if you could get it, because the record supplying
the value might not have executed its own init_record routine.


Dehong Zhang wrote:
Hi,

It seems whenever I try to call dbGetField within init_record (to get value from another
record, when pass==1) the epics environment (iocInit) blows up with the following message:
A call to "assert (dbLockIsInitialized)" failed in ../dbLock.c at 239

Could you expert guys enlighten me? How to work around it?

Thanks much and best regards,
Dehong



--
Tim Mooney ([email protected]) (630)252-5417
Beamline Controls & Data Acquisition Group (www.aps.anl.gov/aod/bcda)
Advanced Photon Source, Argonne National Lab


References:
calling dbGetField in init_record Dehong Zhang

Navigate by Date:
Prev: calling dbGetField in init_record Dehong Zhang
Next: SIemens PLCs Dalesio, Leo
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: calling dbGetField in init_record Dehong Zhang
Next: SIemens PLCs Dalesio, Leo
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  <20082009  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 ·