#!../../bin/linux-x86/xpsMotor < envPaths cd ${TOP} dbLoadDatabase("dbd/xpsMotor.dbd") xpsMotor_registerRecordDeviceDriver(pdbbase) ### Motors dbLoadTemplate "db/xpsHarp.substitutions" dbLoadTemplate "db/XPS3_Aux_ai.substitutions" dbLoadRecords("db/standardScans.db","P=halldxps3:harp:,MAXPTS1=2000,MAXPTS2=1000,MAXPTS3=1000,MAXPTS4=10,MAXPTSH=2000") dbLoadRecords("db/saveData.db","P=halldxps3:harp:") dbLoadRecords("db/scanProgress.db","P=halldxps3:harp:scanProgress:") #asSetFilename("ca_security.txt") # asyn port, IP address, IP port, number of axes, # active poll period (ms), idle poll period (ms), # enable set position, set position settling time (ms) XPSCreateController("XPS3", "129.57.194.13", 5001, 8, 10, 500, 0, 500) XPSAuxConfig("XPS_AUX1", "129.57.194.13", 5001, 50) # XPS asyn port, axis, groupName.positionerName, stepSize(1/0.001 mm) # XPS asyn port, axis, groupName.positionerName, stepSize(1/0.001 mm) XPSCreateAxis("XPS3",0,"Radiator.Pos" , "10000" ) iocInit cd ${TOP}/iocBoot/iocxpsMotor saveData_Init("saveData.req", "P=halldxps3:harp:") seq &scanProgress, "S=halldxps3:harp:,P=halldxps3:harp:scanProgress:" # dbpf("halldxps3:harp:scan1.R1PV", "halldxps3:harp.RBV") dbpf("halldxps3:harp:scan1.P1PV", "halldxps3:harp.VAL") dbpf("halldxps3:harp:scan1.D01PV", "halldxps3:harp.RBV") dbpf("halldxps3:harp:scan1.D02PV", "halldxps3:harp.VAL") dbpf("halldxps3:harp:scan1.D03PV", "halldxps3:XPSAuxAi0:avg.VAL") dbpf("halldxps3:harp:scan1.D04PV", "halldxps3:XPSAuxAi1:avg.VAL") dbpf("halldxps3:harp:scan1.P1SP", "21000") dbpf("halldxps3:harp:scan1.P1EP", "22500") dbpf("halldxps3:harp:scan1.P1SI", "500") dbpf("halldxps3:harp:scan1.PDLY", "2.") dbpf("halldxps3:harp:scan1.DDLY", "0.5") #dbpf("halldxps3:harp:saveData_fileSystem", "/gluex/data") dbpf("halldxps3:harp:saveData_fileSystem", "/home/hovanes/data") dbpf("halldxps3:harp:saveData_subDir", "sscanData") dbpf("halldxps3:harp:saveData_baseName", "data_gharp_") #