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  <20112012  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  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Access to records from subroutines during iocInit
From: Rod Nussbaumer <[email protected]>
To: [email protected]
Date: Thu, 13 Jan 2011 09:26:35 -0800
Hi All.

I have a question/problem, which may simply be me trying to work outside the expected norms. It involves writing to records during IOC initialization. I will give a summary of the situation:

A subroutine record has on one of its inputs, a link to a waveform record. During the INIT subroutine, I call dbGetPdbAddrFromLink() to locate the waveform record, as well as call dbGetNelements() to find the size of the respective waveform record. This seems to work. My intention is to initialize the waveform record with data algorithmically created. I do this by creating an array, and calling dbPutField(), using the value saved from the earlier call to dbGetPdbAddrFromLink(). This results in the following:

A call to 'assert(dbLockIsInitialized)'
    by thread '_main_' failed in ../dbLock.c line 239.
EPICS Release EPICS R3.14.11 $R3-14-11$ $2009/08/28 18:47:36$.
Local time is 2011-01-13 09:05:45.332489000 PST
Please E-mail this message to the author or to [email protected]
Calling epicsThreadSuspendSelf()

If I perform the same actions within the PROC subroutine of the subroutine record, it seems to work as I expected it to. So, if this is not a bug, is there a proper way to accomplish what I am attempting? There are no other records referencing or linked to the waveform record. Its data is used purely for visualization purposes in an EDM X-Y Graph.

Thanks for listening.

Rod Nussbaumer
ISAC Controls, TRIUMF
Vancouver, Canada.



Replies:
RE: Access to records from subroutines during iocInit Allison, Stephanie

Navigate by Date:
Prev: RE: large arrays native element count wrong with Channel Access inEPICS 3.14.12 Michael Abbott
Next: RE: large arrays native element count wrong with Channel Access inEPICS 3.14.12 Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: gateway question Ralph Lange
Next: RE: Access to records from subroutines during iocInit Allison, Stephanie
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·