#!../../bin/linux-x86/voltage ## You may haveto change voltage 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 160000 dbPvdTableSize 65536 < envPaths # The name of the IOC, also prefix that will be used in front of hardware-based records epicsEnvSet("IOCNAME","CDCVLT") # Prefix that will be used in front of the detector-based records epicsEnvSet("PREFIX","") # Macros for Wiener MPOD driver 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/voltage.dbd" voltage_registerRecordDeviceDriver pdbbase #Requests for the general putpose callback tasks are placed in a ring buffer. This command can be used to set the #size for the ring buffers. The default is 2000. A message is issued when a ring buffer overflows. It should rarely be #necessary to override this default. Normally the ring buffer overflow messages appear when a callback task fails. callbackSetQueueSize 160000 # 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 80000 dbPvdTableSize 65536 # This prefix will show up in front of the detector-based names. detUsePrefix ${PREFIX} # Debug level for SNMP devSnmpSetParam(DebugLevel, 0) # Configure detector using SQLite database file configureDetector "CDC", "sqlite://${TOP}/iocBoot/iocvoltage/tt_merged.db" # Automatically generate EPICS DB for detectors. Always use three arguments even if blank. # detDbLoadRecords( CRATE, SLOT, IOCPREFIX ) # First argument is the crate name. # Second argument is the slot number. # Third argument is the prefix that is normally is the IOC name followed by ":" and is used as prefix for hardware records detDbLoadRecords( "", "-1", "$(IOCNAME):" ) dbLoadRecords( "db/voltageWaveformSNC.db", "C=CDC:hv:vmon:,NELM=149" ) dbLoadRecords( "db/voltageWaveformSNC.db", "C=CDC:hv:imon:,NELM=149" ) dbLoadRecords( "db/voltageWaveformSNC.db", "C=CDC:lv:v_sens:,NELM=20" ) dbLoadRecords( "db/voltageWaveformSNC.db", "C=CDC:lv:i_rd:,NELM=20" ) # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=$(PREFIX)CDCVLT") cd ${TOP}/iocBoot/${IOC} asSetFilename("${TOP}/iocBoot/common/ca_security.acf") iocInit seq sncFillVoltageWaveform, "D=CDC,V=hv,P=none,S=vmon,NELM=149" seq sncFillVoltageWaveform, "D=CDC,V=hv,P=none,S=imon,NELM=149" seq sncFillVoltageWaveform, "D=CDC,V=lv,P=none,S=v_sens,NELM=20" seq sncFillVoltageWaveform, "D=CDC,V=lv,P=none,S=i_rd,NELM=20"