From eefb763902887f0fefb795e021e886e6d8c73c34 Mon Sep 17 00:00:00 2001 From: timmmooney <mooney@aps.anl.gov> Date: Tue, 11 Nov 2014 22:33:02 +0000 Subject: [PATCH] Use doAfterIocInit(). --- iocBoot/iocvxWorks/st_SIS3820.iocsh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/iocBoot/iocvxWorks/st_SIS3820.iocsh b/iocBoot/iocvxWorks/st_SIS3820.iocsh index 7db6042..8f9ec1c 100644 --- a/iocBoot/iocvxWorks/st_SIS3820.iocsh +++ b/iocBoot/iocvxWorks/st_SIS3820.iocsh @@ -2,7 +2,7 @@ epicsEnvSet("PREFIX", "xxx:3820:") epicsEnvSet("RNAME", "mca") epicsEnvSet("MAX_SIGNALS", "8") -epicsEnvSet("MAX_CHANS", "2000") +epicsEnvSet("MAX_CHANS", "1000") epicsEnvSet("PORT", "SIS3820/1") # For MCA records FIELD=READ, for waveform records FIELD=PROC epicsEnvSet("FIELD", "READ") @@ -16,13 +16,15 @@ epicsEnvSet("MODEL", "SIS3820") # signals, # use DMA # fifoBufferWords) -drvSIS3820Config($(PORT), 0xA8000000, 224, 6, $(MAX_CHANS), $(MAX_SIGNALS), 1, 0x20000) +drvSIS3820Config($(PORT), 0xA8000000, 224, 6, $(MAX_CHANS), $(MAX_SIGNALS), 1, 0x2000) # This loads the scaler record and supporting records dbLoadRecords("$(STD)/stdApp/Db/scaler32.db", "P=$(PREFIX), S=scaler1, DTYP=Asyn Scaler, OUT=@asyn($(PORT)), FREQ=50000000") # This database provides the support for the MCS functions dbLoadRecords("$(MCA)/mcaApp/Db/SIS38XX.template", "P=$(PREFIX), PORT=$(PORT), SCALER=$(PREFIX)scaler1") +# This SNL programs reads the MCS +doAfterIocInit("seq(&SIS38XX_SNL, 'P=$(PREFIX), R=$(RNAME), NUM_SIGNALS=$(MAX_SIGNALS), FIELD=READ')") # Load either MCA or waveform records below # The number of records loaded must be the same as MAX_SIGNALS defined above @@ -98,6 +100,3 @@ dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX), M=$(RNAME)8, DTYP asynSetTraceIOMask($(PORT),0,2) #asynSetTraceFile("$(PORT)",0,"$(MODEL).out") #asynSetTraceMask("$(PORT)",0,0xff) - -# !!! Don't firget to include the following command in st.cmd, after iocInit -#seq(&SIS38XX_SNL, "P=$(PREFIX), R=$(RNAME), NUM_SIGNALS=$(MAX_SIGNALS), FIELD=$(FIELD)") -- GitLab