Experimental Physics and
| |||||||||||||||||
|
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
| ||||||||||||||||
ANJ, 02 Sep 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |