#!../../bin/linux-x86_64/scalerWaveform ## You may have to change scalerWaveform to something else ## everywhere it appears in this file < envPaths # This is a prefix for all PVs on this IOC in case we want a second instance epicsEnvSet("PREFIX","") cd ${TOP} ## Register all support components dbLoadDatabase "dbd/scalerWaveform.dbd" scalerWaveform_registerRecordDeviceDriver pdbbase # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=$(PREFIX)SCLRWF") ## Load record instances dbLoadRecords("db/scalerWaveformST.db", "PREF=$(PREFIX)") dbLoadRecords("db/scalerWaveformTAGM.db", "PREF=$(PREFIX)") dbLoadRecords("db/scalerWaveformTAGH.db", "PREF=$(PREFIX)") dbLoadRecords("db/scalerWaveformTOF.db", "PREF=$(PREFIX)") dbLoadRecords("db/scalerWaveformBCAL.db", "PREF=$(PREFIX)") dbLoadRecords("db/scalerWaveformPS.db", "PREF=$(PREFIX)") dbLoadRecords("db/scalerWaveformFCAL.db", "PREF=$(PREFIX)") dbLoadRecords("db/scalerWaveformPSC.db", "PREF=$(PREFIX)") #dbLoadRecords("db/scalerWaveformCOMCAL.db", "PREF=$(PREFIX)") dbLoadRecords("db/scalerWaveformDIRC.db", "PREF=$(PREFIX)") #dbLoadRecords("db/scalerWaveformCTOF.db", "PREF=$(PREFIX)") cd ${TOP}/iocBoot/${IOC} asSetFilename("${TOP}/iocBoot/common/ca_security.acf") < scalerWaveform_save_restore.cmd iocInit # autosave startup create_monitor_set("scalerWaveform.req", 30, "PREF=$(PREFIX)") # Handle autosave 'commands' contained in loaded databases. makeAutosaveFiles() #create_monitor_set("info_positions.req", 5, "P=xxx:") #create_monitor_set("info_settings.req", 30, "P=xxx:") # Start any sequence programs. # SNL code does not like empty macros, keep ST after prefix # The SNL code must be expecting this # ST seq st_scaler_waveform,"PREF=$(PREFIX)ST,TYPE=T,READOUT=r1" seq st_scaler_waveform,"PREF=$(PREFIX)ST,TYPE=T,READOUT=r2" seq st_scaler_waveform,"PREF=$(PREFIX)ST,TYPE=T,READOUT=t1" seq st_scaler_waveform,"PREF=$(PREFIX)ST,TYPE=T,READOUT=t2" seq st_scaler_waveform,"PREF=$(PREFIX)ST,TYPE=A,READOUT=r1" # TAGM seq tagm_scaler_waveform,"PREF=$(PREFIX)TAGM,TYPE=T,READOUT=r1" seq tagm_scaler_waveform,"PREF=$(PREFIX)TAGM,TYPE=T,READOUT=r2" seq tagm_scaler_waveform,"PREF=$(PREFIX)TAGM,TYPE=T,READOUT=t1" seq tagm_scaler_waveform,"PREF=$(PREFIX)TAGM,TYPE=T,READOUT=t2" seq tagm_scaler_waveform,"PREF=$(PREFIX)TAGM,TYPE=A,READOUT=r1" # TAGH seq tagh_scaler_waveform,"PREF=$(PREFIX)TAGH,TYPE=T,READOUT=r1" seq tagh_scaler_waveform,"PREF=$(PREFIX)TAGH,TYPE=T,READOUT=r2" seq tagh_scaler_waveform,"PREF=$(PREFIX)TAGH,TYPE=T,READOUT=t1" seq tagh_scaler_waveform,"PREF=$(PREFIX)TAGH,TYPE=T,READOUT=t2" seq tagh_scaler_waveform,"PREF=$(PREFIX)TAGH,TYPE=A,READOUT=r1" # TOF: NORTH seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=N,TYPE=T,READOUT=r1" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=N,TYPE=T,READOUT=r2" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=N,TYPE=T,READOUT=t1" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=N,TYPE=T,READOUT=t2" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=N,TYPE=A,READOUT=r1" # TOF: SOUTH seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=S,TYPE=T,READOUT=r1" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=S,TYPE=T,READOUT=r2" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=S,TYPE=T,READOUT=t1" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=S,TYPE=T,READOUT=t2" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=S,TYPE=A,READOUT=r1" # TOF: TOP seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=UP,TYPE=T,READOUT=r1" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=UP,TYPE=T,READOUT=r2" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=UP,TYPE=T,READOUT=t1" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=UP,TYPE=T,READOUT=t2" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=UP,TYPE=A,READOUT=r1" # TOF: BOTTOM seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=DW,TYPE=T,READOUT=r1" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=DW,TYPE=T,READOUT=r2" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=DW,TYPE=T,READOUT=t1" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=DW,TYPE=T,READOUT=t2" seq tof_scaler_waveform,"PREF=$(PREFIX)TOF,SIDE=DW,TYPE=A,READOUT=r1" # BCAL: UPSTREAM, LAYER 1 seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=1,TYPE=T,READOUT=r1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=1,TYPE=T,READOUT=r2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=1,TYPE=T,READOUT=t1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=1,TYPE=T,READOUT=t2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=1,TYPE=A,READOUT=r1" # BCAL: UPSTREAM, LAYER 2 seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=2,TYPE=T,READOUT=r1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=2,TYPE=T,READOUT=r2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=2,TYPE=T,READOUT=t1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=2,TYPE=T,READOUT=t2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=2,TYPE=A,READOUT=r1" # BCAL: UPSTREAM, LAYER 3 seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=3,TYPE=T,READOUT=r1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=3,TYPE=T,READOUT=r2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=3,TYPE=T,READOUT=t1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=3,TYPE=T,READOUT=t2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=3,TYPE=A,READOUT=r1" # BCAL: UPSTREAM, LAYER 4 seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=U,LAYER=4,TYPE=A,READOUT=r1" # BCAL: DOWNSTREAM, LAYER 1 seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=1,TYPE=T,READOUT=r1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=1,TYPE=T,READOUT=r2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=1,TYPE=T,READOUT=t1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=1,TYPE=T,READOUT=t2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=1,TYPE=A,READOUT=r1" # BCAL: DOWNSTREAM, LAYER 2 seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=2,TYPE=T,READOUT=r1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=2,TYPE=T,READOUT=r2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=2,TYPE=T,READOUT=t1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=2,TYPE=T,READOUT=t2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=2,TYPE=A,READOUT=r1" # BCAL: DOWNSTREAM, LAYER 3 seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=3,TYPE=T,READOUT=r1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=3,TYPE=T,READOUT=r2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=3,TYPE=T,READOUT=t1" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=3,TYPE=T,READOUT=t2" seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=3,TYPE=A,READOUT=r1" # BCAL: DOWNSTREAM, LAYER 4 seq bcal_scaler_waveform,"PREF=$(PREFIX)BCAL,END=D,LAYER=4,TYPE=A,READOUT=r1" # PS: seq ps_scaler_waveform,"PREF=$(PREFIX)PS,ARM=A" seq ps_scaler_waveform,"PREF=$(PREFIX)PS,ARM=B" # FCAL: seq fcal_scaler_waveform,"PREF=$(PREFIX)FCAL" # PSC: seq psc_scaler_waveform,"PREF=$(PREFIX)PSC,TYPE=T,READOUT=r1" seq psc_scaler_waveform,"PREF=$(PREFIX)PSC,TYPE=T,READOUT=r2" seq psc_scaler_waveform,"PREF=$(PREFIX)PSC,TYPE=T,READOUT=t1" seq psc_scaler_waveform,"PREF=$(PREFIX)PSC,TYPE=T,READOUT=t2" seq psc_scaler_waveform,"PREF=$(PREFIX)PSC,TYPE=A,READOUT=r1" # COMCAL: #seq comcal_scaler_waveform,"PREF=$(PREFIX)CCAL" # DIRC: NORTH C1 seq dirc_scaler_waveform,"PREF=$(PREFIX)DIRC,SIDE=n,COL=c1" # DIRC: NORTH C2 seq dirc_scaler_waveform,"PREF=$(PREFIX)DIRC,SIDE=n,COL=c2" # DIRC: SOUTH C1 seq dirc_scaler_waveform,"PREF=$(PREFIX)DIRC,SIDE=s,COL=c1" # DIRC: SOUTH C2 seq dirc_scaler_waveform,"PREF=$(PREFIX)DIRC,SIDE=s,COL=c2" #CTOF #seq ctof_scaler_waveform,"PREF=$(PREFIX)CTOF,TYPE=D,READOUT=r1" #seq ctof_scaler_waveform,"PREF=$(PREFIX)CTOF,TYPE=D,READOUT=r2" #seq ctof_scaler_waveform,"PREF=$(PREFIX)CTOF,TYPE=D,READOUT=t1" #seq ctof_scaler_waveform,"PREF=$(PREFIX)CTOF,TYPE=D,READOUT=t2" #seq ctof_scaler_waveform,"PREF=$(PREFIX)CTOF,TYPE=A,READOUT=r1"