diff --git a/iocBoot/iocvxWorks/st_SIS3820.iocsh b/iocBoot/iocvxWorks/st_SIS3820.iocsh index 7db60428ccd7b4700760b504fb861bf511863ff4..8f9ec1c49a557a09b9d9ec7138619701db9f6684 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)")