errlogInit(20000) epicsEnvSet("PREFIX", "bpd") epicsEnvSet("PREFIX1", "$(PREFIX):SIS38XX:1:") epicsEnvSet("PREFIX2", "$(PREFIX):SIS38XX:2:") epicsEnvSet("PREFIX3", "$(PREFIX):SIS38XX:3:") epicsEnvSet("PREFIX4", "$(PREFIX):SIS38XX:4:") epicsEnvSet("RNAME", "mca") epicsEnvSet("MAX_SIGNALS", "32") epicsEnvSet("MAX_CHANS", "256") epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", "500000") epicsEnvSet("PORT1", "SIS38XX:1") epicsEnvSet("PORT2", "SIS38XX:2") epicsEnvSet("PORT3", "SIS38XX:3") epicsEnvSet("PORT4", "SIS38XX:4") # For MCA records FIELD=READ, for waveform records FIELD=PROC #epicsEnvSet("FIELD", "READ") #epicsEnvSet("MODEL", "SIS3801") epicsEnvSet("NFIFO", "256") epicsEnvSet( "DWEL", "0.01" ) ## Register all support components dbLoadDatabase "../../dbd/SIS38XX_Linux.dbd" SIS38XX_Linux_registerRecordDeviceDriver pdbbase #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) # This loads the scaler record and supporting records #dbLoadRecords("$(TOP)/db/scaler32.db", "P=$(PREFIX1), S=scaler1, DTYP=Asyn Scaler, OUT=@asyn($(PORT1)), FREQ=25000000") #dbLoadRecords("$(TOP)/db/scaler32.db", "P=$(PREFIX2), S=scaler2, DTYP=Asyn Scaler, OUT=@asyn($(PORT2)), FREQ=25000000") #dbLoadRecords("$(TOP)/db/scaler32.db", "P=$(PREFIX3), S=scaler3, DTYP=Asyn Scaler, OUT=@asyn($(PORT3)), FREQ=25000000") #dbLoadRecords("$(TOP)/db/scaler32.db", "P=$(PREFIX4), S=scaler4, DTYP=Asyn Scaler, OUT=@asyn($(PORT4)), FREQ=25000000") dbLoadRecords("$(STD)/stdApp/Db/scaler32.db", "P=$(PREFIX1), S=scaler1, DTYP=Asyn Scaler, OUT=@asyn($(PORT1)), FREQ=25000000") dbLoadRecords("$(STD)/stdApp/Db/scaler32.db", "P=$(PREFIX2), S=scaler2, DTYP=Asyn Scaler, OUT=@asyn($(PORT2)), FREQ=25000000") dbLoadRecords("$(STD)/stdApp/Db/scaler32.db", "P=$(PREFIX3), S=scaler3, DTYP=Asyn Scaler, OUT=@asyn($(PORT3)), FREQ=25000000") dbLoadRecords("$(STD)/stdApp/Db/scaler32.db", "P=$(PREFIX4), S=scaler4, 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=scaler1") #dbLoadRecords("$(TOP)/db/SIS38XX.template", "P=$(PREFIX2), PORT=$(PORT2), SCALER=scaler2") #dbLoadRecords("$(TOP)/db/SIS38XX.template", "P=$(PREFIX3), PORT=$(PORT3), SCALER=scaler3") #dbLoadRecords("$(TOP)/db/SIS38XX.template", "P=$(PREFIX4), PORT=$(PORT4), SCALER=scaler4") dbLoadRecords("$(MCA)/mcaApp/Db/SIS38XX.template", "P=$(PREFIX1), PORT=$(PORT1), SCALER=scaler1") dbLoadRecords("$(MCA)/mcaApp/Db/SIS38XX.template", "P=$(PREFIX2), PORT=$(PORT2), SCALER=scaler2") dbLoadRecords("$(MCA)/mcaApp/Db/SIS38XX.template", "P=$(PREFIX3), PORT=$(PORT3), SCALER=scaler3") dbLoadRecords("$(MCA)/mcaApp/Db/SIS38XX.template", "P=$(PREFIX4), PORT=$(PORT4), SCALER=scaler4") # This database provides the support for the SIS3820 functions (PollingPeriod) dbLoadRecords("$(TOP)/db/SIS3820.db", "P=$(PREFIX1), PORT=$(PORT1)") dbLoadRecords("$(TOP)/db/SIS3820.db", "P=$(PREFIX2), PORT=$(PORT2)") dbLoadRecords("$(TOP)/db/SIS3820.db", "P=$(PREFIX3), PORT=$(PORT3)") dbLoadRecords("$(TOP)/db/SIS3820.db", "P=$(PREFIX4), PORT=$(PORT4)") # 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("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)1, DTYP=asynMCA, INP=@asyn($(PORT1) 0), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)2, DTYP=asynMCA, INP=@asyn($(PORT1) 1), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)3, DTYP=asynMCA, INP=@asyn($(PORT1) 2), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)4, DTYP=asynMCA, INP=@asyn($(PORT1) 3), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)5, DTYP=asynMCA, INP=@asyn($(PORT1) 4), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)6, DTYP=asynMCA, INP=@asyn($(PORT1) 5), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)7, DTYP=asynMCA, INP=@asyn($(PORT1) 6), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)8, DTYP=asynMCA, INP=@asyn($(PORT1) 7), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)9, DTYP=asynMCA, INP=@asyn($(PORT1) 8), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)10, DTYP=asynMCA, INP=@asyn($(PORT1) 9), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)11, DTYP=asynMCA, INP=@asyn($(PORT1) 10), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)12, DTYP=asynMCA, INP=@asyn($(PORT1) 11), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)13, DTYP=asynMCA, INP=@asyn($(PORT1) 12), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)14, DTYP=asynMCA, INP=@asyn($(PORT1) 13), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)15, DTYP=asynMCA, INP=@asyn($(PORT1) 14), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)16, DTYP=asynMCA, INP=@asyn($(PORT1) 15), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)17, DTYP=asynMCA, INP=@asyn($(PORT1) 16), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)18, DTYP=asynMCA, INP=@asyn($(PORT1) 17), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)19, DTYP=asynMCA, INP=@asyn($(PORT1) 18), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)20, DTYP=asynMCA, INP=@asyn($(PORT1) 19), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)21, DTYP=asynMCA, INP=@asyn($(PORT1) 20), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)22, DTYP=asynMCA, INP=@asyn($(PORT1) 21), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)23, DTYP=asynMCA, INP=@asyn($(PORT1) 22), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)24, DTYP=asynMCA, INP=@asyn($(PORT1) 23), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)25, DTYP=asynMCA, INP=@asyn($(PORT1) 24), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)26, DTYP=asynMCA, INP=@asyn($(PORT1) 25), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)27, DTYP=asynMCA, INP=@asyn($(PORT1) 26), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)28, DTYP=asynMCA, INP=@asyn($(PORT1) 27), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)29, DTYP=asynMCA, INP=@asyn($(PORT1) 28), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)30, DTYP=asynMCA, INP=@asyn($(PORT1) 29), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)31, DTYP=asynMCA, INP=@asyn($(PORT1) 30), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX1), M=$(RNAME)32, DTYP=asynMCA, INP=@asyn($(PORT1) 31), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)1, DTYP=asynMCA, INP=@asyn($(PORT2) 0), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)2, DTYP=asynMCA, INP=@asyn($(PORT2) 1), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)3, DTYP=asynMCA, INP=@asyn($(PORT2) 2), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)4, DTYP=asynMCA, INP=@asyn($(PORT2) 3), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)5, DTYP=asynMCA, INP=@asyn($(PORT2) 4), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)6, DTYP=asynMCA, INP=@asyn($(PORT2) 5), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)7, DTYP=asynMCA, INP=@asyn($(PORT2) 6), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)8, DTYP=asynMCA, INP=@asyn($(PORT2) 7), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)9, DTYP=asynMCA, INP=@asyn($(PORT2) 8), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)10, DTYP=asynMCA, INP=@asyn($(PORT2) 9), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)11, DTYP=asynMCA, INP=@asyn($(PORT2) 10), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)12, DTYP=asynMCA, INP=@asyn($(PORT2) 11), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)13, DTYP=asynMCA, INP=@asyn($(PORT2) 12), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)14, DTYP=asynMCA, INP=@asyn($(PORT2) 13), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)15, DTYP=asynMCA, INP=@asyn($(PORT2) 14), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)16, DTYP=asynMCA, INP=@asyn($(PORT2) 15), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)17, DTYP=asynMCA, INP=@asyn($(PORT2) 16), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)18, DTYP=asynMCA, INP=@asyn($(PORT2) 17), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)19, DTYP=asynMCA, INP=@asyn($(PORT2) 18), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)20, DTYP=asynMCA, INP=@asyn($(PORT2) 19), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)21, DTYP=asynMCA, INP=@asyn($(PORT2) 20), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)22, DTYP=asynMCA, INP=@asyn($(PORT2) 21), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)23, DTYP=asynMCA, INP=@asyn($(PORT2) 22), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)24, DTYP=asynMCA, INP=@asyn($(PORT2) 23), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)25, DTYP=asynMCA, INP=@asyn($(PORT2) 24), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)26, DTYP=asynMCA, INP=@asyn($(PORT2) 25), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)27, DTYP=asynMCA, INP=@asyn($(PORT2) 26), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)28, DTYP=asynMCA, INP=@asyn($(PORT2) 27), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)29, DTYP=asynMCA, INP=@asyn($(PORT2) 28), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)30, DTYP=asynMCA, INP=@asyn($(PORT2) 29), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)31, DTYP=asynMCA, INP=@asyn($(PORT2) 30), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX2), M=$(RNAME)32, DTYP=asynMCA, INP=@asyn($(PORT2) 31), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)1, DTYP=asynMCA, INP=@asyn($(PORT3) 0), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)2, DTYP=asynMCA, INP=@asyn($(PORT3) 1), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)3, DTYP=asynMCA, INP=@asyn($(PORT3) 2), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)4, DTYP=asynMCA, INP=@asyn($(PORT3) 3), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)5, DTYP=asynMCA, INP=@asyn($(PORT3) 4), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)6, DTYP=asynMCA, INP=@asyn($(PORT3) 5), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)7, DTYP=asynMCA, INP=@asyn($(PORT3) 6), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)8, DTYP=asynMCA, INP=@asyn($(PORT3) 7), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)9, DTYP=asynMCA, INP=@asyn($(PORT3) 8), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)10, DTYP=asynMCA, INP=@asyn($(PORT3) 9), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)11, DTYP=asynMCA, INP=@asyn($(PORT3) 10), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)12, DTYP=asynMCA, INP=@asyn($(PORT3) 11), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)13, DTYP=asynMCA, INP=@asyn($(PORT3) 12), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)14, DTYP=asynMCA, INP=@asyn($(PORT3) 13), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)15, DTYP=asynMCA, INP=@asyn($(PORT3) 14), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)16, DTYP=asynMCA, INP=@asyn($(PORT3) 15), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)17, DTYP=asynMCA, INP=@asyn($(PORT3) 16), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)18, DTYP=asynMCA, INP=@asyn($(PORT3) 17), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)19, DTYP=asynMCA, INP=@asyn($(PORT3) 18), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)20, DTYP=asynMCA, INP=@asyn($(PORT3) 19), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)21, DTYP=asynMCA, INP=@asyn($(PORT3) 20), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)22, DTYP=asynMCA, INP=@asyn($(PORT3) 21), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)23, DTYP=asynMCA, INP=@asyn($(PORT3) 22), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)24, DTYP=asynMCA, INP=@asyn($(PORT3) 23), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)25, DTYP=asynMCA, INP=@asyn($(PORT3) 24), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)26, DTYP=asynMCA, INP=@asyn($(PORT3) 25), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)27, DTYP=asynMCA, INP=@asyn($(PORT3) 26), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)28, DTYP=asynMCA, INP=@asyn($(PORT3) 27), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)29, DTYP=asynMCA, INP=@asyn($(PORT3) 28), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)30, DTYP=asynMCA, INP=@asyn($(PORT3) 29), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)31, DTYP=asynMCA, INP=@asyn($(PORT3) 30), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX3), M=$(RNAME)32, DTYP=asynMCA, INP=@asyn($(PORT3) 31), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)1, DTYP=asynMCA, INP=@asyn($(PORT4) 0), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)2, DTYP=asynMCA, INP=@asyn($(PORT4) 1), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)3, DTYP=asynMCA, INP=@asyn($(PORT4) 2), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)4, DTYP=asynMCA, INP=@asyn($(PORT4) 3), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)5, DTYP=asynMCA, INP=@asyn($(PORT4) 4), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)6, DTYP=asynMCA, INP=@asyn($(PORT4) 5), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)7, DTYP=asynMCA, INP=@asyn($(PORT4) 6), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)8, DTYP=asynMCA, INP=@asyn($(PORT4) 7), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)9, DTYP=asynMCA, INP=@asyn($(PORT4) 8), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)10, DTYP=asynMCA, INP=@asyn($(PORT4) 9), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)11, DTYP=asynMCA, INP=@asyn($(PORT4) 10), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)12, DTYP=asynMCA, INP=@asyn($(PORT4) 11), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)13, DTYP=asynMCA, INP=@asyn($(PORT4) 12), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)14, DTYP=asynMCA, INP=@asyn($(PORT4) 13), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)15, DTYP=asynMCA, INP=@asyn($(PORT4) 14), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)16, DTYP=asynMCA, INP=@asyn($(PORT4) 15), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)17, DTYP=asynMCA, INP=@asyn($(PORT4) 16), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)18, DTYP=asynMCA, INP=@asyn($(PORT4) 17), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)19, DTYP=asynMCA, INP=@asyn($(PORT4) 18), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)20, DTYP=asynMCA, INP=@asyn($(PORT4) 19), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)21, DTYP=asynMCA, INP=@asyn($(PORT4) 20), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)22, DTYP=asynMCA, INP=@asyn($(PORT4) 21), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)23, DTYP=asynMCA, INP=@asyn($(PORT4) 22), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)24, DTYP=asynMCA, INP=@asyn($(PORT4) 23), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)25, DTYP=asynMCA, INP=@asyn($(PORT4) 24), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)26, DTYP=asynMCA, INP=@asyn($(PORT4) 25), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)27, DTYP=asynMCA, INP=@asyn($(PORT4) 26), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)28, DTYP=asynMCA, INP=@asyn($(PORT4) 27), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)29, DTYP=asynMCA, INP=@asyn($(PORT4) 28), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)30, DTYP=asynMCA, INP=@asyn($(PORT4) 29), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)31, DTYP=asynMCA, INP=@asyn($(PORT4) 30), PREC=3, CHANS=$(MAX_CHANS)") dbLoadRecords("$(MCA)/mcaApp/Db/simple_mca.db", "P=$(PREFIX4), M=$(RNAME)32, DTYP=asynMCA, INP=@asyn($(PORT4) 31), PREC=3, CHANS=$(MAX_CHANS)") #dbLoadRecords("$(TOP)/db/bp_aliases.db", "P=$(PREFIX), R=mca, P1=$(PREFIX1), P2=$(PREFIX2), P3=$(PREFIX3), P4=$(PREFIX4)") # #dbLoadRecords("$(TOP)/db/bp_stop_start.db", "PREF=$(PREFIX), PREF1=$(PREFIX1), PREF2=$(PREFIX2),PREF3=$(PREFIX3), PREF4=$(PREFIX4)") #dbLoadRecords("$(TOP)/db/bp_fit_results.db", "PREF=$(PREFIX)") #dbLoadRecords("/gluex/controls/epics/R3-14-12-3-VXWORKS/app/db/bp_aliases.db", "P=$(PREFIX), R=mca, P1=$(PREFIX1), P2=$(PREFIX2), P3=$(PREFIX3), P4=$(PREFIX4)") #dbLoadRecords("/gluex/controls/epics/R3-14-12-3-VXWORKS/app/db/bp_stop_start.db", "PREF=$(PREFIX), PREF1=$(PREFIX1), PREF2=$(PREFIX2),PREF3=$(PREFIX3), PREF4=$(PREFIX4)") #dbLoadRecords("/gluex/controls/epics/R3-14-12-3-VXWORKS/app/db/bp_fit_results.db", "PREF=$(PREFIX)") < beamProfiler_save_restore.cmd set_pass0_restoreFile("$(PREFIX).sav") set_pass1_restoreFile("$(PREFIX).sav") #cd startup iocInit create_monitor_set("$(PREFIX).req", 30, "PREF=${PREFIX}") makeAutosaveFiles() dbpf( $(PREFIX1)Dwell, "$(DWEL)" ) dbpf( $(PREFIX2)Dwell, "$(DWEL)" ) dbpf( $(PREFIX3)Dwell, "$(DWEL)" ) dbpf( $(PREFIX4)Dwell, "$(DWEL)" ) 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" ) ## Start any sequence programs seq(&SIS38XX_SNL, "P=$(PREFIX1), R=$(RNAME), NUM_SIGNALS=32, FIELD=READ") seq(&SIS38XX_SNL, "P=$(PREFIX2), R=$(RNAME), NUM_SIGNALS=32, FIELD=READ") seq(&SIS38XX_SNL, "P=$(PREFIX3), R=$(RNAME), NUM_SIGNALS=32, FIELD=READ") seq(&SIS38XX_SNL, "P=$(PREFIX4), R=$(RNAME), NUM_SIGNALS=32, FIELD=READ") #seq(&bp_scalers, "PREF=$(PREFIX)")