#!../../bin/linux-x86/pulserV1495 ## You may have to change pulserV1495 to something else ## everywhere it appears in this file < envPaths cd ${TOP} #errlogInit(20000) epicsEnvSet("PREFIX", "D2-5-MID:7") epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", "8400000") epicsEnvSet("PORT", "V1495_PULSER") ## Register all support components dbLoadDatabase "dbd/pulserV1495.dbd" pulserV1495_registerRecordDeviceDriver pdbbase # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=DIRCPLSR") # Configure pulser board drvPulserConfig( $(PORT), 0x0F000000 ) # Load DB for the board dbLoadRecords( "db/pulser.db" , "P=$(PREFIX), PORT=$(PORT), DTYP=asynUInt32Digital" ) # Load DBs for individual pulser channels dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=0, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=1, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=2, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=3, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=4, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=5, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=6, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=7, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=8, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=9, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=10, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=11, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=12, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=13, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=14, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=15, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=16, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=17, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=18, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=19, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=20, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=21, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=22, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=23, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=24, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=25, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=26, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=27, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=28, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=29, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=30, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=31, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=32, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=33, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=34, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=35, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=36, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=37, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=38, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=39, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=40, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=41, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=42, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=43, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=44, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=45, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=46, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=47, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=48, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=49, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=50, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=51, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=52, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=53, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX), PORT=$(PORT), ADDR=54, DTYP=asynUInt32Digital" ) # Load DB for DIRC pulser control dbLoadRecords( "db/fcalPulser.db" , "DET=DIRC,ID=WHITE") dbLoadRecords( "db/fcalPulser.db" , "DET=DIRC,ID=TRIG") dbLoadRecords( "db/fcalMorPulser.db" , "DET=DIRC") dbLoadRecords( "db/fcalTriggerPulser.db", "DET=DIRC") #asynSetTraceIOMask($(PORT),0,2) #asynSetTraceMask("$(PORT)",0,0xff) #cd ${TOP}/iocBoot/${IOC} #asynSetTraceFile("$(PORT)",0,"$(MODEL).out") cd ${TOP}/iocBoot/${IOC} iocInit # DIRC pulsers # Pass the poiter to the PV arrays and connect PVs seq pulser_pvs, "DET=DIRC" seq fcal_pulser, "DET=DIRC,ID=WHITE" seq fcal_pulser, "DET=DIRC,ID=TRIG" # Launch the sequncer for seeting up MOR output parameters seq fcal_mor_pulser, "DET=DIRC" # Launch sequencer for selecting and controling the active pulser seq ps_trigger_pulser, "DET=DIRC"