Experimental Physics and Industrial Control System
Stefan,
you should use instead the genSubrecord. In the genSubRecord you have
access to the values of other records by pointer, whereas in the
subRecord you get copies of the values only.
Burkhard
Bruins, Stefan wrote:
Allright, but which steps to commit when created the gensub conversion
source code. Especially the makefile settings etc...
I include part of my Makefile.Vx:
# Makefile.Vx
TOP = ../../..
include $(TOP)/config/CONFIG_APP
#----------------------------------------
# ADD MACRO DEFINITIONS AFTER THIS LINE
RECTYPES += mcaRecord.h
DBDEXPAND += ../mcaRecord.dbd
RECTYPES += genSubRecord.h
DBDEXPAND += ../genSubRecord.dbd
DBDEXPAND += ../menuGenSub.dbd
#SRCS.c += ../drvSTR7201.c
#SRCS.c += ../devSTR7201.c
SRCS.c += ../drvSIS3820.c
SRCS.c += ../devSIS3820.c
SRCS.c += ../mcaRecord.c
SRCS.c += ../genSubRecord.c
SRCS.c += ../scalerN.c
LIBOBJS += drvSIS3820.o
LIBOBJS += devSIS3820.o
LIBOBJS += mcaRecord.o
LIBOBJS += genSubRecord.o
LIBOBJS += scalerN.o
LIBOBJS += $(EPICS_BASE_BIN)/devVXStats.o
LIBOBJS += $(EPICS_BASE_BIN)/waitRecord.o
LIBOBJS += $(EPICS_BASE_BIN)/recDynLink.o
include ../baseLIBOBJS
LIBNAME = exampleLib
INSTALLS += iocCore
#Note that the command line that builds the
#library $(LIBNAME) may be HUGE (>3kB)
#
include $(TOP)/config/RULES.Vx
#----------------------------------------
# ADD RULES AFTER THIS LINE
...
I have the waveform record inluded in baseLIBOBJS
In my case I have a mcaRecord which collects data from an array of
multi-scalers, the data are stored internally in waveforms, then my
gensubrecord action routine in scalerN.c/o reads the arrays and
calculates means and all sorts of things and then stores the data again
in output waveforms.
Hope, that helps,
Burkhard
- References:
- RE: use of SUB record Bruins, Stefan
- Navigate by Date:
- Prev:
RE: use of SUB record Bruins, Stefan
- Next:
Re: use of SUB record Tim Mooney
- 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: use of SUB record Bruins, Stefan
- Next:
FW: use of SUB record Bruins, Stefan
- 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