#!../../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_1", "BCAL:pulser1") epicsEnvSet("PREFIX_2", "BCAL:pulser2") epicsEnvSet("PREFIX_3", "U1-1-TOP:4") epicsEnvSet("PREFIX_4", "U1-1-TOP:17") epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", "8400000") epicsEnvSet("PORT_1", "V1495_PULSER_1") epicsEnvSet("PORT_2", "V1495_PULSER_2") epicsEnvSet("PORT_3", "V1495_PULSER_3") epicsEnvSet("PORT_4", "V1495_PULSER_4") epicsEnvSet("MODEL", "V1495_PULSER") epicsEnvSet("DET", "BCAL:pulser") ## Register all support components dbLoadDatabase "dbd/pulserV1495.dbd" pulserV1495_registerRecordDeviceDriver pdbbase # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=BCPLSR") # Configure pulser board drvPulserConfig( $(PORT_1), 0x0D000000 ) drvPulserConfig( $(PORT_2), 0x0E000000 ) drvPulserConfig( $(PORT_3), 0x0F000000 ) drvPulserConfig( $(PORT_4), 0x10000000 ) # Load DB for the board dbLoadRecords( "db/pulser.db" , "P=$(PREFIX_1), PORT=$(PORT_1), DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulser.db" , "P=$(PREFIX_2), PORT=$(PORT_2), DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulser.db" , "P=$(PREFIX_3), PORT=$(PORT_3), DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulser.db" , "P=$(PREFIX_4), PORT=$(PORT_4), DTYP=asynUInt32Digital" ) # Load DBs for individual pulser channels dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=0, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=1, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=2, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=3, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=4, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=5, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=6, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=7, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=8, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=9, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=10, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=11, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=12, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=13, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=14, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=15, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=16, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=17, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=18, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=19, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=20, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=21, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=22, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=23, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=24, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=25, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=26, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=27, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=28, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=29, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=30, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=31, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=32, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=33, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=34, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=35, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=36, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=37, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=38, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=39, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=40, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=41, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=42, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=43, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=44, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=45, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=46, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=47, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=48, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=49, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=50, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=51, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=52, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=53, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=54, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=0, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=1, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=2, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=3, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=4, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=5, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=6, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=7, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=8, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=9, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=10, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=11, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=12, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=13, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=14, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=15, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=16, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=17, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=18, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=19, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=20, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=21, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=22, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=23, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=24, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=25, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=26, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=27, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=28, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=29, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=30, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=31, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=32, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=33, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=34, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=35, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=36, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=37, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=38, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=39, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=40, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=41, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=42, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=43, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=44, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=45, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=46, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=47, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=48, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=49, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=50, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=51, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=52, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=53, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=54, DTYP=asynUInt32Digital" ) #PS pulser channels dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=0, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=1, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=2, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=3, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=4, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=5, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=6, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=7, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=8, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=9, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=10, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=11, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=12, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=13, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=14, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=15, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=16, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=17, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=18, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=19, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=20, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=21, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=22, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=23, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=24, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=25, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=26, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=27, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=28, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=29, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=30, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=31, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=32, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=33, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=34, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=35, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=36, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=37, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=38, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=39, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=40, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=41, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=42, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=43, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=44, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=45, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=46, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=47, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=48, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=49, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=50, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=51, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=52, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=53, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_3), PORT=$(PORT_3), ADDR=54, DTYP=asynUInt32Digital" ) #RNDM pulser channels dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=0, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=1, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=2, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=3, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=4, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=5, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=6, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=7, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=8, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=9, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=10, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=11, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=12, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=13, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=14, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=15, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=16, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=17, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=18, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=19, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=20, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=21, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=22, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=23, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=24, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=25, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=26, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=27, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=28, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=29, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=30, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=31, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=32, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=33, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=34, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=35, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=36, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=37, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=38, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=39, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=40, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=41, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=42, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=43, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=44, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=45, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=46, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=47, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=48, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=49, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=50, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=51, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=52, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=53, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_4), PORT=$(PORT_4), ADDR=54, DTYP=asynUInt32Digital" ) # Load DB for GOUT pulsing channel dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=55, DTYP=asynUInt32Digital" ) dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_2), PORT=$(PORT_2), ADDR=55, DTYP=asynUInt32Digital" ) # Load soft channels board base dbLoadRecords( "db/DetPulser.db" , "DET=$(DET), P1=$(PREFIX_1), P2=$(PREFIX_2)" ) # Load soft channels channel base dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):1, P=$(PREFIX_1), ADDR = 31, Channel=1") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):2, P=$(PREFIX_1), ADDR = 32, Channel=2") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):3, P=$(PREFIX_1), ADDR = 33, Channel=3") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):4, P=$(PREFIX_1), ADDR = 34, Channel=4") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):5, P=$(PREFIX_1), ADDR = 35, Channel=5") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):6, P=$(PREFIX_1), ADDR = 36, Channel=6") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):7, P=$(PREFIX_1), ADDR = 37, Channel=7") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):8, P=$(PREFIX_1), ADDR = 38, Channel=8") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):9, P=$(PREFIX_1), ADDR = 39, Channel=9") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):10, P=$(PREFIX_1), ADDR = 40, Channel=10") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):11, P=$(PREFIX_1), ADDR = 41, Channel=11") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):12, P=$(PREFIX_1), ADDR = 42, Channel=12") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):13, P=$(PREFIX_1), ADDR = 43, Channel=13") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):14, P=$(PREFIX_1), ADDR = 44, Channel=14") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):15, P=$(PREFIX_1), ADDR = 45, Channel=15") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):16, P=$(PREFIX_1), ADDR = 46, Channel=16") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):17, P=$(PREFIX_2), ADDR = 31, Channel=17") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):18, P=$(PREFIX_2), ADDR = 32, Channel=18") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):19, P=$(PREFIX_2), ADDR = 33, Channel=19") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):20, P=$(PREFIX_2), ADDR = 34, Channel=20") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):21, P=$(PREFIX_2), ADDR = 35, Channel=21") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):22, P=$(PREFIX_2), ADDR = 36, Channel=22") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):23, P=$(PREFIX_2), ADDR = 37, Channel=23") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):24, P=$(PREFIX_2), ADDR = 38, Channel=24") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):25, P=$(PREFIX_2), ADDR = 39, Channel=25") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):26, P=$(PREFIX_2), ADDR = 40, Channel=26") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):27, P=$(PREFIX_2), ADDR = 41, Channel=27") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):28, P=$(PREFIX_2), ADDR = 42, Channel=28") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):29, P=$(PREFIX_2), ADDR = 43, Channel=29") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):30, P=$(PREFIX_2), ADDR = 44, Channel=30") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):31, P=$(PREFIX_2), ADDR = 45, Channel=31") dbLoadRecords( "db/DetPulserChannel.db" , "DET=$(DET), DETch=$(DET):32, P=$(PREFIX_2), ADDR = 46, Channel=32") # Load DB for PS pulser control, uses FCAL pulser scheme dbLoadRecords( "db/fcalPulser.db" , "DET=PS,ID=WHITE") dbLoadRecords( "db/fcalPulser.db" , "DET=PS,ID=TRIG") dbLoadRecords( "db/fcalMorPulser.db" , "DET=PS") dbLoadRecords( "db/fcalTriggerPulser.db", "DET=PS") # Load DB for RNDM pulser control, uses FCAL pulser scheme dbLoadRecords( "db/fcalPulser.db" , "DET=RNDM,ID=WHITE") dbLoadRecords( "db/fcalPulser.db" , "DET=RNDM,ID=TRIG") dbLoadRecords( "db/fcalMorPulser.db" , "DET=RNDM") dbLoadRecords( "db/fcalTriggerPulser.db", "DET=RNDM") #asynSetTraceIOMask($(PORT_1),0,2) #asynSetTraceMask("$(PORT_1)",0,0xff) #cd ${TOP}/iocBoot/${IOC} #asynSetTraceFile("$(PORT_1)",0,"$(MODEL).out") cd ${TOP}/iocBoot/${IOC} iocInit # PS pulsers # Pass the poiter to the PV arrays and connect PVs seq pulser_pvs, "DET=PS" seq fcal_pulser, "DET=PS,ID=WHITE" seq fcal_pulser, "DET=PS,ID=TRIG" # Launch the sequncer for seeting up MOR output parameters seq fcal_mor_pulser, "DET=PS" # Launch sequencer for selecting and controling the active pulser seq ps_trigger_pulser, "DET=PS" # RNDM pulsers # Pass the poiter to the PV arrays and connect PVs seq pulser_pvs, "DET=RNDM" seq fcal_pulser, "DET=RNDM,ID=WHITE" seq fcal_pulser, "DET=RNDM,ID=TRIG" # Launch the sequncer for seeting up MOR output parameters seq fcal_mor_pulser, "DET=RNDM" # Launch sequencer for selecting and controling the active pulser seq ps_trigger_pulser, "DET=RNDM" # Put pulse widths for all BCAL LED pulser and NIM triggers to 200ns # on IOC boot as was requested by Mark Dalton. dbpf BCAL:pulser:all:rawwidth_w 200 dbpf BCAL:pulser:trig1_width_w 200 dbpf BCAL:pulser:trig2_width_w 200