You are missing something with the dbd files or Makefile.
Here's how I normally do it. In the module that defines the record (in this case the mca record in the mca module) create a file called mcaSupport.dbd that includes mcaRecord.dbd:
corvette> more mcaSupport.dbd
################
# RECORD SUPPORT
################
include "mcaRecord.dbd"
In the module that will use the record (in this case the same module) in the appInclude.dbd file, include mcaSupport.dbd:
corvette> more mcaInclude.dbd
include "base.dbd"
include "mcaSupport.dbd"
In your Makefile you need lines like these:
# xxxRecord.h will be created from xxxRecord.dbd
DBDINC += mcaRecord
# <name>.dbd will be created from <name>Include.dbd
DBD += mca.dbd
DBD += mcaSupport.dbd
#=============================
LIBRARY_IOC += mca
mca_SRCS += mcaRecord.c
mca_LIBS += $(EPICS_BASE_IOC_LIBS)
Mark
________________________________
From: [email protected] on behalf of Heinrich du Toit
Sent: Fri 7/6/2007 3:45 AM
To: TechTalk EPICS
Subject: trouble with custom record
Ok so I read all the stuff on custom records.. And I think I understand
the programming part and how the functions should get called ect ect.
But I can't seem to get the things to compile?
I have myRecord.dbd with record def inside. dbToRecordH thingy works
I have myRecord.c with the code. It can compile fine.
But I can't seem to get this to load into the actual ioc.
When I try to DBLoadDataBase(myRecord.dbd) then it complains about
dbCommon.dbd not available.
If I try to load myRecord.dbd as part of my ioc.dbd with the makefile
the I get some error in ioc_registerRecordDeviceDriver.cpp
if I try to get it to "expand" a new .dbd for my record it complains
about menu stuff missing.
help?
- Replies:
- Re: trouble with custom record Ned D. Arnold
- References:
- trouble with custom record Heinrich du Toit
- Navigate by Date:
- Prev:
trouble with custom record Heinrich du Toit
- Next:
Re: trouble with custom record Ned D. Arnold
- 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:
trouble with custom record Heinrich du Toit
- Next:
Re: trouble with custom record Ned D. Arnold
- 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
|