#!../../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", "pulser") epicsEnvSet("EPICS_CA_MAX_ARRAY_BYTES", "8400000") epicsEnvSet("PORT_1", "V1495_PULSER") epicsEnvSet("MODEL", "V1495_PULSER") ## Register all support components dbLoadDatabase "dbd/pulserV1495.dbd" pulserV1495_registerRecordDeviceDriver pdbbase # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=FCPLSR") # Configure pulser board drvPulserConfig( $(PORT_1), 0x0D000000 ) #drvPulserConfig( $(PORT_1), 0x0E000000 ) # Load DB for the board dbLoadRecords( "db/pulser.db" , "P=$(PREFIX_1), PORT=$(PORT_1), 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_1), PORT=$(PORT_1), ADDR=55, DTYP=asynUInt32Digital" ) # Load DB for GOUT pulsing channel dbLoadRecords( "db/pulserChannel.db" , "P=$(PREFIX_1), PORT=$(PORT_1), ADDR=55, DTYP=asynUInt32Digital" ) #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