#!../../bin/linux-x86/hvCaen ## You may have to change hvCaen to something else ## everywhere it appears in this file # scanOnce requests are placed in a ring buffer. # This command can be used to set the size for the ring buffer. # The default is 1000. It should rarely be necessary to override this default. # Normally the ring buffer overflow messages appear when the scanOnce task fails. scanOnceSetQueueSize 2000 < envPaths #epicsEnvSet("PREFIX","") epicsEnvSet("PREFIX","xyz") epicsEnvSet("MIB","WIENER-CRATE-MIB::") epicsEnvSet("WO", "WIENER-CRATE-MIB::output") # Error Log To Console 0 or 1 eltc 1 cd ${TOP} ## Register all support components dbLoadDatabase "dbd/hvCaen.dbd" hvCaen_registerRecordDeviceDriver pdbbase # detUsePrefix "prefix" detUsePrefix ${PREFIX} devSnmpSetParam(DebugLevel, 0) devSnmpSetMaxOidsPerReq("halldmpod4", 1) devSnmpSetSnmpVersion("halldmpod4","SNMP_VERSION_2c") devSnmpSetParam(ReadStarvationMSec, 60000) devSnmpSetParam(PassivePollMSec, 1500) devSnmpSetParam(SetSkipReadbackMSec, 50000000) #CAENx527ConfigureCreate "hv0", "halldcaenhv1" #detConfigureCrate "Detector", "URI" detConfigureCrate "BCAL","sqlite:///halldfs1/home/nerses/controls/epics/app/hvCaenApp/src/tt.db" detConfigureCrate "CDC", "sqlite:///halldfs1/home/nerses/controls/epics/app/hvCaenApp/src/tt.db" detConfigureCrate "FDC", "sqlite:///halldfs1/home/nerses/controls/epics/app/hvCaenApp/src/tt.db" detConfigureCrate "PS", "sqlite:///halldfs1/home/nerses/controls/epics/app/hvCaenApp/src/tt.db" ## Load record instances #dbLoadRecords("db/xxx.db","user=hovanesHost") # Automatically generate EPICS DB for CAEN HV Chassis #CAENx527DbLoadRecords detDbLoadRecords dbLoadRecords "db/DetWF.db" "DET=CDC:lv,PREFIX=${PREFIX},SUFFIX=i_rd,NELM=20" dbLoadRecords "db/DetWF.db" "DET=CDC:lv,PREFIX=${PREFIX},SUFFIX=v_sens,NELM=20" dbLoadRecords "db/DetWF.db" "DET=CDC:hv,PREFIX=${PREFIX},SUFFIX=imon,NELM=149" dbLoadRecords "db/DetWF.db" "DET=CDC:hv,PREFIX=${PREFIX},SUFFIX=vmon,NELM=149" dbLoadRecords "db/DetWF.db" "DET=FDC:lv,PREFIX=${PREFIX},SUFFIX=i_rd,NELM=74" dbLoadRecords "db/DetWF.db" "DET=FDC:lv,PREFIX=${PREFIX},SUFFIX=v_sens,NELM=74" dbLoadRecords "db/DetWF.db" "DET=FDC:hv,PREFIX=${PREFIX},SUFFIX=imon,NELM=192" dbLoadRecords "db/DetWF.db" "DET=FDC:hv,PREFIX=${PREFIX},SUFFIX=vmon,NELM=192" dbLoadRecords "db/DetWF.db" "DET=FDC:hv,PREFIX=${PREFIX},SUFFIX=v0set:fbk,NELM=192" dbLoadRecords "db/DetWF.db" "DET=PS:lv,PREFIX=${PREFIX},SUFFIX=i_rd,NELM=8" dbLoadRecords "db/DetWF.db" "DET=PS:lv,PREFIX=${PREFIX},SUFFIX=v_sens,NELM=8" dbLoadRecords "db/DetWF.db" "DET=PS:bias,PREFIX=${PREFIX},SUFFIX=i_rd,NELM=58" dbLoadRecords "db/DetWF.db" "DET=PS:bias,PREFIX=${PREFIX},SUFFIX=v_sens,NELM=58" dbLoadRecords "db/DetWF.db" "DET=BCAL:bias,PREFIX=${PREFIX},SUFFIX=i_rd,NELM=384" dbLoadRecords "db/DetWF.db" "DET=BCAL:bias,PREFIX=${PREFIX},SUFFIX=v_sens,NELM=384" dbLoadRecords "db/DetWF.db" "DET=BCAL:lv,PREFIX=${PREFIX},SUFFIX=i_rd,NELM=48" dbLoadRecords "db/DetWF.db" "DET=BCAL:lv,PREFIX=${PREFIX},SUFFIX=v_sens,NELM=48" cd ${TOP}/iocBoot/${IOC} iocInit # # Initialize the SNMP driver # #epicsSnmpInit() #(epicsSnmpInit() is obsolete, init now done automatically via initHooks) ## Start any sequence programs #seq sncxxx,"user=hovanesHost"