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  <20192020  2021  2022  2023  2024  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Simple test fails to find subroutine in registry
From: Matt Rippa via Tech-talk <[email protected]>
To: Talk EPICS Tech <[email protected]>
Date: Mon, 6 May 2019 14:50:17 -1000
So of course I left out the piece of info that actually caused my problem. At Gemini we're using TDCT to design and build our databases.

Turns out this is generating a SUBL field with zeros as shown below. Replacing this field with an empty string solves my problem.

I'll follow up with Rolf to get the rule changed and see if we can (formally?) support aSub in tdct. My symbols are just clones of the genSubRecords used here at Gemini.

--Matt

#= database generated by tdct V2.17.5
#= on 2019-05-06 14:35
#= configuration file: ../tdct.cfg
#= (mode: Capfast compatibility)
record(aSub,"simpleTest") {
    field(DESC,"Array Subroutine Record")
    field(SCAN,"Passive")
    field(PINI,"NO")
    field(PHAS,"0")
    field(EVNT,"0")
    field(DISV,"1")
    field(PREC,"0")
    field(LFLG,"IGNORE")
    field(EFLG,"ALWAYS")
    field(SDIS,"0.0000000000000000e+00")
    field(DISS,"NO_ALARM")
    field(PRIO,"LOW")
    field(FLNK,"0.000000000000000e+00")
    field(SUBL,"0.0000000000000000e+00")


On Mon, May 6, 2019 at 10:11 AM Matt Rippa <[email protected]> wrote:
On EPICS 3.14.12.7, I have a simple application to test the subroutine in an aSubRecord.
The INAM routine is found, but the SNAM lookup fails. I can't track this down.

1. simple.c, simple.dbd, simple.db, Makefile, and registryDump.txt attached.
2. The aSubRecord fails inside init_record with registryFunctionFind(prec->snam)
3. Yet the registryDump shows both my subroutine names.

Anyone know what I'm doing wrong?

Thanks for your help,
-Matt


cd /gem_sw/test/mrippa/simple
dbLoadDatabase("dbd/simple-mk-IOC.dbd")
simple_mk_IOC_registerRecordDeviceDriver(pdbbase)
dbLoadRecords("db/simple.db")
iocInit

Starting iocInit
############################################################################
## EPICS R3.14.12.7-DEV
## EPICS Base built Dec 17 2017
############################################################################
Simple Init
Subroutine not found PV: simpleTest aSubRecord::init_record - SNAM subr not found

iocRun: All initialization complete



--


References:
Simple test fails to find subroutine in registry Matt Rippa via Tech-talk

Navigate by Date:
Prev: Re: libca bug? Matt Newville via Tech-talk
Next: Re: libca bug? 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Simple test fails to find subroutine in registry Matt Rippa via Tech-talk
Next: convertRelease.pl checkRelease printing on stdout vs. stderr Hinko Kocevar 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  <20192020  2021  2022  2023  2024 
ANJ, 08 May 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·