#!../../bin/linux-x86/beamProfiler ## You may have to change beamProfiler to something else ## everywhere it appears in this file < envPaths # The name of the IOC, also prefix that will be used in front of hardware-based records epicsEnvSet("IOCNAME","SCLRBPU") errlogInit(20000) epicsEnvSet("PREFIX", "bpu") epicsEnvSet("PREFIX1", "$(PREFIX):x:1:") epicsEnvSet("PREFIX2", "$(PREFIX):x:2:") epicsEnvSet("PREFIX3", "$(PREFIX):y:1:") epicsEnvSet("PREFIX4", "$(PREFIX):y:2:") epicsEnvSet("RNAME", "mca") epicsEnvSet("MAX_SIGNALS", "32") epicsEnvSet("MAX_CHANS", "512") epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", "500000") epicsEnvSet("PORT1", "x:1") epicsEnvSet("PORT2", "x:2") epicsEnvSet("PORT3", "y:1") epicsEnvSet("PORT4", "y:2") # For MCA records FIELD=READ, for waveform records FIELD=PROC #epicsEnvSet("FIELD", "READ") #epicsEnvSet("MODEL", "SIS3801") epicsEnvSet("NFIFO", "$(MAX_CHANS)") epicsEnvSet("N_SLICES", "256") epicsEnvSet("N_FREQS", "128") #epicsEnvSet("DWEL", "0.00048828" ) epicsEnvSet("DWEL", "0.001953125" ) cd ${TOP} ## Register all support components dbLoadDatabase "dbd/beamProfiler.dbd" beamProfiler_registerRecordDeviceDriver pdbbase # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=$(IOCNAME)") #drvSIS3820Config("Port name", # baseAddress, # interruptVector, # int interruptLevel, # channels, # signals, # use DMA # fifoBufferWords) #drvSIS3820Config($(PORT), 0xA8000000, 224, 6, $(MAX_CHANS), $(MAX_SIGNALS), 1, 0x200000) drvSIS3820_LinuxConfig($(PORT1), 0x08000000, 220, 6, $(NFIFO), 32, 0, 0x4000) drvSIS3820_LinuxConfig($(PORT2), 0x09000000, 221, 6, $(NFIFO), 32, 0, 0x4000) drvSIS3820_LinuxConfig($(PORT3), 0x0A000000, 222, 6, $(NFIFO), 32, 0, 0x4000) drvSIS3820_LinuxConfig($(PORT4), 0x0B000000, 223, 6, $(NFIFO), 32, 0, 0x4000) # Load the MCA records dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)1, DTYP=asynMCA, INP=@asyn($(PORT1) 0), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)2, DTYP=asynMCA, INP=@asyn($(PORT1) 1), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)3, DTYP=asynMCA, INP=@asyn($(PORT1) 2), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)4, DTYP=asynMCA, INP=@asyn($(PORT1) 3), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)5, DTYP=asynMCA, INP=@asyn($(PORT1) 4), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)6, DTYP=asynMCA, INP=@asyn($(PORT1) 5), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)7, DTYP=asynMCA, INP=@asyn($(PORT1) 6), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)8, DTYP=asynMCA, INP=@asyn($(PORT1) 7), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)9, DTYP=asynMCA, INP=@asyn($(PORT1) 8), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)10, DTYP=asynMCA, INP=@asyn($(PORT1) 9), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)11, DTYP=asynMCA, INP=@asyn($(PORT1) 10), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)12, DTYP=asynMCA, INP=@asyn($(PORT1) 11), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)13, DTYP=asynMCA, INP=@asyn($(PORT1) 12), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)14, DTYP=asynMCA, INP=@asyn($(PORT1) 13), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)15, DTYP=asynMCA, INP=@asyn($(PORT1) 14), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)16, DTYP=asynMCA, INP=@asyn($(PORT1) 15), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)17, DTYP=asynMCA, INP=@asyn($(PORT1) 16), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)18, DTYP=asynMCA, INP=@asyn($(PORT1) 17), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)19, DTYP=asynMCA, INP=@asyn($(PORT1) 18), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)20, DTYP=asynMCA, INP=@asyn($(PORT1) 19), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)21, DTYP=asynMCA, INP=@asyn($(PORT1) 20), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)22, DTYP=asynMCA, INP=@asyn($(PORT1) 21), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)23, DTYP=asynMCA, INP=@asyn($(PORT1) 22), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)24, DTYP=asynMCA, INP=@asyn($(PORT1) 23), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)25, DTYP=asynMCA, INP=@asyn($(PORT1) 24), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)26, DTYP=asynMCA, INP=@asyn($(PORT1) 25), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)27, DTYP=asynMCA, INP=@asyn($(PORT1) 26), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)28, DTYP=asynMCA, INP=@asyn($(PORT1) 27), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)29, DTYP=asynMCA, INP=@asyn($(PORT1) 28), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)30, DTYP=asynMCA, INP=@asyn($(PORT1) 29), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)31, DTYP=asynMCA, INP=@asyn($(PORT1) 30), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)32, DTYP=asynMCA, INP=@asyn($(PORT1) 31), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)1, DTYP=asynMCA, INP=@asyn($(PORT2) 0), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)2, DTYP=asynMCA, INP=@asyn($(PORT2) 1), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)3, DTYP=asynMCA, INP=@asyn($(PORT2) 2), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)4, DTYP=asynMCA, INP=@asyn($(PORT2) 3), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)5, DTYP=asynMCA, INP=@asyn($(PORT2) 4), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)6, DTYP=asynMCA, INP=@asyn($(PORT2) 5), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)7, DTYP=asynMCA, INP=@asyn($(PORT2) 6), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)8, DTYP=asynMCA, INP=@asyn($(PORT2) 7), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)9, DTYP=asynMCA, INP=@asyn($(PORT2) 8), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)10, DTYP=asynMCA, INP=@asyn($(PORT2) 9), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)11, DTYP=asynMCA, INP=@asyn($(PORT2) 10), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)12, DTYP=asynMCA, INP=@asyn($(PORT2) 11), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)13, DTYP=asynMCA, INP=@asyn($(PORT2) 12), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)14, DTYP=asynMCA, INP=@asyn($(PORT2) 13), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)15, DTYP=asynMCA, INP=@asyn($(PORT2) 14), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)16, DTYP=asynMCA, INP=@asyn($(PORT2) 15), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)17, DTYP=asynMCA, INP=@asyn($(PORT2) 16), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)18, DTYP=asynMCA, INP=@asyn($(PORT2) 17), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)19, DTYP=asynMCA, INP=@asyn($(PORT2) 18), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)20, DTYP=asynMCA, INP=@asyn($(PORT2) 19), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)21, DTYP=asynMCA, INP=@asyn($(PORT2) 20), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)22, DTYP=asynMCA, INP=@asyn($(PORT2) 21), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)23, DTYP=asynMCA, INP=@asyn($(PORT2) 22), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)24, DTYP=asynMCA, INP=@asyn($(PORT2) 23), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)25, DTYP=asynMCA, INP=@asyn($(PORT2) 24), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)26, DTYP=asynMCA, INP=@asyn($(PORT2) 25), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)27, DTYP=asynMCA, INP=@asyn($(PORT2) 26), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)28, DTYP=asynMCA, INP=@asyn($(PORT2) 27), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)29, DTYP=asynMCA, INP=@asyn($(PORT2) 28), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)30, DTYP=asynMCA, INP=@asyn($(PORT2) 29), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)31, DTYP=asynMCA, INP=@asyn($(PORT2) 30), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)32, DTYP=asynMCA, INP=@asyn($(PORT2) 31), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)1, DTYP=asynMCA, INP=@asyn($(PORT3) 0), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)2, DTYP=asynMCA, INP=@asyn($(PORT3) 1), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)3, DTYP=asynMCA, INP=@asyn($(PORT3) 2), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)4, DTYP=asynMCA, INP=@asyn($(PORT3) 3), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)5, DTYP=asynMCA, INP=@asyn($(PORT3) 4), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)6, DTYP=asynMCA, INP=@asyn($(PORT3) 5), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)7, DTYP=asynMCA, INP=@asyn($(PORT3) 6), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)8, DTYP=asynMCA, INP=@asyn($(PORT3) 7), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)9, DTYP=asynMCA, INP=@asyn($(PORT3) 8), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)10, DTYP=asynMCA, INP=@asyn($(PORT3) 9), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)11, DTYP=asynMCA, INP=@asyn($(PORT3) 10), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)12, DTYP=asynMCA, INP=@asyn($(PORT3) 11), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)13, DTYP=asynMCA, INP=@asyn($(PORT3) 12), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)14, DTYP=asynMCA, INP=@asyn($(PORT3) 13), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)15, DTYP=asynMCA, INP=@asyn($(PORT3) 14), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)16, DTYP=asynMCA, INP=@asyn($(PORT3) 15), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)17, DTYP=asynMCA, INP=@asyn($(PORT3) 16), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)18, DTYP=asynMCA, INP=@asyn($(PORT3) 17), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)19, DTYP=asynMCA, INP=@asyn($(PORT3) 18), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)20, DTYP=asynMCA, INP=@asyn($(PORT3) 19), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)21, DTYP=asynMCA, INP=@asyn($(PORT3) 20), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)22, DTYP=asynMCA, INP=@asyn($(PORT3) 21), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)23, DTYP=asynMCA, INP=@asyn($(PORT3) 22), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)24, DTYP=asynMCA, INP=@asyn($(PORT3) 23), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)25, DTYP=asynMCA, INP=@asyn($(PORT3) 24), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)26, DTYP=asynMCA, INP=@asyn($(PORT3) 25), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)27, DTYP=asynMCA, INP=@asyn($(PORT3) 26), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)28, DTYP=asynMCA, INP=@asyn($(PORT3) 27), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)29, DTYP=asynMCA, INP=@asyn($(PORT3) 28), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)30, DTYP=asynMCA, INP=@asyn($(PORT3) 29), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)31, DTYP=asynMCA, INP=@asyn($(PORT3) 30), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)32, DTYP=asynMCA, INP=@asyn($(PORT3) 31), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)1, DTYP=asynMCA, INP=@asyn($(PORT4) 0), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)2, DTYP=asynMCA, INP=@asyn($(PORT4) 1), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)3, DTYP=asynMCA, INP=@asyn($(PORT4) 2), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)4, DTYP=asynMCA, INP=@asyn($(PORT4) 3), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)5, DTYP=asynMCA, INP=@asyn($(PORT4) 4), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)6, DTYP=asynMCA, INP=@asyn($(PORT4) 5), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)7, DTYP=asynMCA, INP=@asyn($(PORT4) 6), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)8, DTYP=asynMCA, INP=@asyn($(PORT4) 7), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)9, DTYP=asynMCA, INP=@asyn($(PORT4) 8), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)10, DTYP=asynMCA, INP=@asyn($(PORT4) 9), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)11, DTYP=asynMCA, INP=@asyn($(PORT4) 10), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)12, DTYP=asynMCA, INP=@asyn($(PORT4) 11), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)13, DTYP=asynMCA, INP=@asyn($(PORT4) 12), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)14, DTYP=asynMCA, INP=@asyn($(PORT4) 13), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)15, DTYP=asynMCA, INP=@asyn($(PORT4) 14), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)16, DTYP=asynMCA, INP=@asyn($(PORT4) 15), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)17, DTYP=asynMCA, INP=@asyn($(PORT4) 16), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)18, DTYP=asynMCA, INP=@asyn($(PORT4) 17), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)19, DTYP=asynMCA, INP=@asyn($(PORT4) 18), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)20, DTYP=asynMCA, INP=@asyn($(PORT4) 19), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)21, DTYP=asynMCA, INP=@asyn($(PORT4) 20), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)22, DTYP=asynMCA, INP=@asyn($(PORT4) 21), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)23, DTYP=asynMCA, INP=@asyn($(PORT4) 22), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)24, DTYP=asynMCA, INP=@asyn($(PORT4) 23), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)25, DTYP=asynMCA, INP=@asyn($(PORT4) 24), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)26, DTYP=asynMCA, INP=@asyn($(PORT4) 25), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)27, DTYP=asynMCA, INP=@asyn($(PORT4) 26), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)28, DTYP=asynMCA, INP=@asyn($(PORT4) 27), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)29, DTYP=asynMCA, INP=@asyn($(PORT4) 28), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)30, DTYP=asynMCA, INP=@asyn($(PORT4) 29), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)31, DTYP=asynMCA, INP=@asyn($(PORT4) 30), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)32, DTYP=asynMCA, INP=@asyn($(PORT4) 31), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/bpPlaneSim.db", "PREF=$(PREFIX):x, CHANS=$(MAX_CHANS)") dbLoadRecords("$(TOP)/db/bpPlaneSim.db", "PREF=$(PREFIX):y, CHANS=$(MAX_CHANS)") # This loads the scaler record and supporting records dbLoadRecords("$(TOP)/db/scaler32.db", "P=$(PREFIX1), S=scaler, DTYP=Asyn Scaler, OUT=@asyn($(PORT1)), FREQ=25000000") dbLoadRecords("$(TOP)/db/scaler32.db", "P=$(PREFIX2), S=scaler, DTYP=Asyn Scaler, OUT=@asyn($(PORT2)), FREQ=25000000") dbLoadRecords("$(TOP)/db/scaler32.db", "P=$(PREFIX3), S=scaler, DTYP=Asyn Scaler, OUT=@asyn($(PORT3)), FREQ=25000000") dbLoadRecords("$(TOP)/db/scaler32.db", "P=$(PREFIX4), S=scaler, DTYP=Asyn Scaler, OUT=@asyn($(PORT4)), FREQ=25000000") # This database provides the support for the MCS functions dbLoadRecords("$(TOP)/db/SIS38XX.template", "P=$(PREFIX1), PORT=$(PORT1), SCALER=scaler") dbLoadRecords("$(TOP)/db/SIS38XX.template", "P=$(PREFIX2), PORT=$(PORT2), SCALER=scaler") dbLoadRecords("$(TOP)/db/SIS38XX.template", "P=$(PREFIX3), PORT=$(PORT3), SCALER=scaler") dbLoadRecords("$(TOP)/db/SIS38XX.template", "P=$(PREFIX4), PORT=$(PORT4), SCALER=scaler") # Linux-version control records for planes dbLoadRecords("$(TOP)/db/bpStopStartPlane.db", "PREF=$(PREFIX):x,PREF1=$(PREFIX1), PREF2=$(PREFIX2)" ) dbLoadRecords("$(TOP)/db/bpStopStartPlane.db", "PREF=$(PREFIX):y,PREF1=$(PREFIX3), PREF2=$(PREFIX4)" ) # Linux-version record for controlling whole profiler dbLoadRecords("$(TOP)/db/bpControl.db", "PREF=$(PREFIX),PREF1=$(PREFIX):x,PREF2=$(PREFIX):y") # Load records for display and archiving for individual profiler planes dbLoadRecords("$(TOP)/db/bpFitResultsPlane.db", "PREF=$(PREFIX),PLANE=x,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS)") dbLoadRecords("$(TOP)/db/bpFitResultsPlane.db", "PREF=$(PREFIX),PLANE=y,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS)") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=x,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=max") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=x,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=mean") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=x,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=width") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=x,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=bkg") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=x,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=photons") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=x,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=sum") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=y,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=max") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=y,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=mean") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=y,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=width") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=y,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=bkg") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=y,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=photons") dbLoadRecords("$(TOP)/db/bpFFT.db", "PREF=$(PREFIX),PLANE=y,NFIFO=$(MAX_CHANS),NSLICES=$(N_SLICES),NFREQS=$(N_FREQS),VAR=sum") # Linux-version aliases for individual profiler planes dbLoadRecords("$(TOP)/db/bpAliases.db", "P=$(PREFIX):x, R=mca, P1=$(PREFIX1), P2=$(PREFIX2)") dbLoadRecords("$(TOP)/db/bpAliases.db", "P=$(PREFIX):y, R=mca, P1=$(PREFIX3), P2=$(PREFIX4)") cd ${TOP}/iocBoot/${IOC} < bpu_save_restore.cmd set_pass0_restoreFile("$(PREFIX).sav") set_pass1_restoreFile("$(PREFIX).sav") iocInit create_monitor_set("$(PREFIX).req", 30, "PREF=") makeAutosaveFiles() dbpf( $(PREFIX1)ReadAll.SCAN, "Passive" ) dbpf( $(PREFIX2)ReadAll.SCAN, "Passive" ) dbpf( $(PREFIX3)ReadAll.SCAN, "Passive" ) dbpf( $(PREFIX4)ReadAll.SCAN, "Passive" ) #dbpf( $(PREFIX1)Channel1Source, "1" ) #dbpf( $(PREFIX2)Channel1Source, "1" ) #dbpf( $(PREFIX3)Channel1Source, "1" ) #dbpf( $(PREFIX4)Channel1Source, "1" ) dbpf( $(PREFIX):ComDwel, "$(DWEL)" ) dbpf( $(PREFIX):ComChan1Source, "1" ) dbpf( $(PREFIX):EnableClientWait, "0") dbpf( $(PREFIX):ClientWait, "0" ) dbpf( $(PREFIX):smooth, "1" ) ## Start Linux-version sequence programs for scaler modules and MCA, not profiler specific seq(&SIS38XX_Linux_SNL, "P=$(PREFIX1), R=$(RNAME), NUM_SIGNALS=$(MAX_SIGNALS), FIELD=READ") seq(&SIS38XX_Linux_SNL, "P=$(PREFIX2), R=$(RNAME), NUM_SIGNALS=$(MAX_SIGNALS), FIELD=READ") seq(&SIS38XX_Linux_SNL, "P=$(PREFIX3), R=$(RNAME), NUM_SIGNALS=$(MAX_SIGNALS), FIELD=READ") seq(&SIS38XX_Linux_SNL, "P=$(PREFIX4), R=$(RNAME), NUM_SIGNALS=$(MAX_SIGNALS), FIELD=READ") # Share the SNL PVs with C++ code for this profilers seq(&bpPVs,"DET=$(PREFIX)") # Start sequencers for X and Y planes of the profiler seq(&bpReadScalers4Plane, "DET=$(PREFIX),PLANE=x") seq(&bpReadScalers4Plane, "DET=$(PREFIX),PLANE=y") # Make the scalers start acquiring epicsThreadSleep 5 dbpf( $(PREFIX):EraseStartSeq, "1" );