Hi Michael/Andrew,
Here is the record:
# conditioning record
record(sub,"$(device):CndtnSB") {
field(DESC, "")
field(SCAN, "Passive")
field(PINI, "NO")
field(PHAS, "0")
field(EVNT, "0")
field(DISV, "1")
field(SDIS, "0")
field(DISS, "NO_ALARM")
field(PRIO, "MEDIUM")
field(FLNK, "0")
field(INAM, "conditionInit")
field(SNAM, "conditionProc")
field(INPA, "$(device):CrntCmdAO PP")
field(INPB, "$(device):CndtnLowLmtAO PP")
field(INPC, "$(device):CndtnHighLmtAO PP")
field(INPD, "0")
field(INPE, "$(device):CndtnCyclTimeAO PP")
field(INPF, "$(device):CndtnNmbrCyclsAO PP")
field(INPG, "$(device):CndtnEndptAO PP")
field(INPH, "1")
field(H, "1")
field(INPI, "$(device):CndtnModeBO PP")
field(INPJ, "$(device):CndtnTimeStepAO PP")
field(EGU, "")
field(HOPR, "0")
field(LOPR, "0")
field(HIHI, "0")
field(LOLO, "0")
field(HIGH, "0")
field(LOW, "0")
field(PREC, "4")
field(BRSV, "NO_ALARM")
field(HHSV, "NO_ALARM")
field(LLSV, "NO_ALARM")
field(HSV, "NO_ALARM")
field(LSV, "NO_ALARM")
field(HYST, "0")
field(ADEL, "0")
field(MDEL, "0")
}
On 6/28/20 9:32 PM, Michael Davidsaver wrote:
CAUTION: *** EMAIL ORIGINATED FROM OUTSIDE THE ORGANIZATION. Please do
not click links or open attachments unless you know the contents are
safe. Verify that you recognize sender email address before clicking
any link or attachment. DO NOT enter/change any password when clicking
on a link. *** What does the record "T:Q03:CndtnSB" definition look
like? Do you set INAM to "conditionInit"? On 6/28/20 5:10 PM, Ernesto
Paiser via Tech-talk wrote:
Hello, My subroutine record (3.15.5) is not finding the INAM and the
SNAM subroutines: iocInit() Starting iocInit
############################################################################
## EPICS R3.15.5-01 ## EPICS Base built Feb 21 2020
############################################################################
Subroutine not found PV: T:Q03:CndtnSB Init subroutine (INAM) The
code was working in 3.14.11 (lised below): static long
conditionInit(subRecord *psub) { struct myCallbackStruct *pcb; ...
pcb->precord = psub; psub->dpvt = (void *)pcb; return(0); } static
long conditionProc(subRecord *psub) { struct myCallbackStruct *pcb;
long nRequest = 1; ... return(0); } static registryFunctionRef
conditionRef[] = { {"conditionInit",(REGISTRYFUNCTION)conditionInit},
{"conditionProc",(REGISTRYFUNCTION)conditionProc} }; static void
condition(void) {
registryFunctionRefAdd(conditionRef,NELEMENTS(conditionRef)); }
epicsExportRegistrar(condition); In the Makefile I have included the
source code like below: # <name>_registerRecordDeviceDriver.cpp will
be created from <name>.dbd $(PROD_IOC)_SRCS +=
$(PROD_IOC)_registerRecordDeviceDriver.cpp $(PROD_IOC)_SRCS_DEFAULT
+= iocshMain.c $(PROD_IOC)_SRCS += condition.c What I'm missing, is
there some changes from 3.14.11 to 3.15.5. Thank you, Ernesto
- Replies:
- Re: Sub record not finding INAM and SNAM Johnson, Andrew N. via Tech-talk
- References:
- Sub record not finding INAM and SNAM Ernesto Paiser via Tech-talk
- Re: Sub record not finding INAM and SNAM Michael Davidsaver via Tech-talk
- Navigate by Date:
- Prev:
ci-scripts 3.1 release: support for GitHub Actions Ralph Lange via Tech-talk
- Next:
Re: Sub record not finding INAM and SNAM Johnson, Andrew N. 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
2023
2024
- Navigate by Thread:
- Prev:
Re: Sub record not finding INAM and SNAM Johnson, Andrew N. via Tech-talk
- Next:
Re: Sub record not finding INAM and SNAM Johnson, Andrew N. 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
2023
2024
|