#!../../bin/linux-x86_64/xpsMotor < envPaths cd ${TOP} dbLoadDatabase("dbd/xpsMotor.dbd") xpsMotor_registerRecordDeviceDriver(pdbbase) # Load IOC status records dbLoadRecords("db/iocAdminSoft.db","IOC=GONISCAN") epicsEnvSet("PREFIX","GONI_XY") epicsEnvSet("MOTOR_X","HD:GONI:X") epicsEnvSet("MOTOR_Y","HD:GONI:Y") #dbLoadRecords("db/standardScans.db","P=$(MOTOR_X):,MAXPTS1=2000,MAXPTS2=2000,MAXPTS3=1000,MAXPTS4=10,MAXPTSH=2000") #dbLoadRecords("db/saveData.db","P=$(MOTOR_X):") #dbLoadRecords("db/scanProgress.db","P=$(MOTOR_X):scanProgress:") #dbLoadRecords("db/beamCheck4scan.db","PREF='',R=$(MOTOR_X)") #dbLoadRecords("db/standardScans.db","P=$(MOTOR_Y):,MAXPTS1=2000,MAXPTS2=2000,MAXPTS3=1000,MAXPTS4=10,MAXPTSH=2000") #dbLoadRecords("db/saveData.db","P=$(MOTOR_Y):") #dbLoadRecords("db/scanProgress.db","P=$(MOTOR_Y):scanProgress:") #dbLoadRecords("db/beamCheck4scan.db","PREF='',R=$(MOTOR_Y)") dbLoadRecords("db/standardScans.db","P=$(PREFIX):,MAXPTS1=2000,MAXPTS2=2000,MAXPTS3=1000,MAXPTS4=10,MAXPTSH=2000") dbLoadRecords("db/saveData.db","P=$(PREFIX):") dbLoadRecords("db/scanProgress.db","P=$(PREFIX):scanProgress:") dbLoadRecords("db/beamCheck4scan.db","PREF='',R=$(PREFIX)") cd ${TOP}/iocBoot/${IOC} asSetFilename("${TOP}/iocBoot/common/ca_security.acf") < goniScanXY_save_restore.cmd set_pass0_restoreFile("goniScanXY.sav") set_pass1_restoreFile("goniScanXY.sav") iocInit # autosave startup create_monitor_set("goniScanXY.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:") # Launch sequencer for to do scan progress and save data cd ${TOP}/iocBoot/iocxpsMotor #saveData_Init("saveDataGoniScanXY.req", "P=$(MOTOR_Y):,Q=$(MOTOR_X):") saveData_Init("saveData.req", "P=$(PREFIX):") seq &scanProgress, "S=$(PREFIX):,P=$(PREFIX):scanProgress:" #seq &scanProgress, "S=$(PREFIX):,P=$(PREFIX):scanProgress:" # # first positioner - X # dbpf("$(PREFIX):scan1.R1PV", "$(MOTOR_X).RBV") dbpf("$(PREFIX):scan1.P1PV", "$(MOTOR_X).VAL") #dbpf("$(PREFIX):scan1.P1SP", "0") #dbpf("$(PREFIX):scan1.P1EP", "1.") #dbpf("$(PREFIX):scan1.P1SI", "0.2") #dbpf("$(PREFIX):scan1.PDLY", "1.") dbpf("$(PREFIX):scan1.T1PV", "$(PREFIX):beamCheckBusy") dbpf("$(PREFIX):scan1.T1CD", "1.") #dbpf("$(PREFIX):scan1.NPTS", "100") # # detectors # dbpf("$(PREFIX):scan1.D01PV", "$(MOTOR_X).RBV") dbpf("$(PREFIX):scan1.D02PV", "$(MOTOR_Y).RBV") dbpf("$(PREFIX):scan1.D03PV", "TAGH:T:232:scaler_t1") dbpf("$(PREFIX):scan1.D04PV", "TAGH:T:233:scaler_t1") dbpf("$(PREFIX):scan1.D05PV", "TAGH:A:232:scaler_r1") dbpf("$(PREFIX):scan1.D06PV", "TAGH:A:233:scaler_r1") dbpf("$(PREFIX):scan1.D07PV", "bpu:x:total_rate") dbpf("$(PREFIX):scan1.D08PV", "bpu:y:total_rate") dbpf("$(PREFIX):scan1.D09PV", "Active_Target:T:scaler_t1") dbpf("$(PREFIX):scan1.D10PV", "HALO:T:electron:tag:top:scaler_t1") dbpf("$(PREFIX):scan1.D11PV", "HALO:T:electron:tag:left:scaler_t1") dbpf("$(PREFIX):scan1.D12PV", "HALO:T:electron:tag:bottom:scaler_t1") dbpf("$(PREFIX):scan1.D13PV", "HALO:T:gamma:tag:top:scaler_t1") dbpf("$(PREFIX):scan1.D14PV", "HALO:T:gamma:tag:left:scaler_t1") dbpf("$(PREFIX):scan1.D15PV", "HALO:T:gamma:tag:bottom:scaler_t1") dbpf("$(PREFIX):scan1.D16PV", "HALO:T:gamma:tag:right:scaler_t1") dbpf("$(PREFIX):scan1.D17PV", "IBCAD00CRCUR6") dbpf("$(PREFIX):scan1.D18PV", "TAGH:T:1:scaler_t1") dbpf("$(PREFIX):scan1.D19PV", "TAGH:T:2:scaler_t1") dbpf("$(PREFIX):scan1.D20PV", "TAGH:A:1:scaler_r1") dbpf("$(PREFIX):scan1.D21PV", "TAGH:A:2:scaler_r1") dbpf("$(PREFIX):scan1.D22PV", "TAGH:T:scaler_t1_wf_total") dbpf("$(PREFIX):scan1.D23PV", "TAGM:T:scaler_t1_wf_total") dbpf("$(PREFIX):scan1.D24PV", "TAGH:A:scaler_r1_wf_total") dbpf("$(PREFIX):scan1.D25PV", "TAGM:A:scaler_r1_wf_total") # # # second positioner - Y # dbpf("$(PREFIX):scan2.R1PV", "$(MOTOR_Y).RBV") dbpf("$(PREFIX):scan2.P1PV", "$(MOTOR_Y).VAL") #dbpf("$(PREFIX):scan2.P1SP", "0") #dbpf("$(PREFIX):scan2.P1EP", "2.") #dbpf("$(PREFIX):scan2.P1SI", "0.5") #dbpf("$(PREFIX):scan2.PDLY", "1.") dbpf("$(PREFIX):scan2.T1PV", "$(PREFIX):scan1.EXSC") dbpf("$(PREFIX):scan2.T1CD", "1.") # # detectors # # # save file # #dbpf("$(PREFIX):saveData_fileSystem", "/gluex/data/GoniScans") #dbpf("$(PREFIX):saveData_subDir", "sscanData") #dbpf("$(PREFIX):saveData_baseName", "goniXY_scan_")