Files
sf-op/script/RFscan/setRFphaseGlobal.py
gobbo_a 8beeb7dbc7
2023-08-17 15:16:51 +02:00

19 lines
908 B
Python

# change V-sum offset base globally (for example to compensate a laser delay change), dph is the desired phase shift
dph = 34.0
stationlist0 = ("SINSB01","SINSB02","SINSB03","SINSB04","SINXB01")
stationlist1 = ("S10CB01","S10CB02","S10CB03","S10CB04","S10CB05","S10CB06","S10CB07","S10CB08","S10CB09")
stationlist2 = ("S20CB01","S20CB02","S20CB03","S20CB04")
stationlist3 = ("S20CB01","S20CB02","S20CB03","S20CB04","S30CB01","S30CB02","S30CB03","S30CB04","S30CB05","S30CB06","S30CB07","S30CB08","S30CB09","S30CB10","S30CB11","S30CB12","S30CB13")
stationlist = stationlist1 + stationlist2 + stationlist3
Ph = {}
for station in stationlist:
ph0 = caget(station + "-RSYS:SET-VSUM-PHASE-OFFSET-BASE") # deg
Ph[station] = (ph0 - dph) % 360
for station in stationlist:
caput(station + "-RSYS:SET-VSUM-PHASE-OFFSET-BASE", Ph[station])
print(station + "-RSYS:SET-VSUM-PHASE-OFFSET-BASE", Ph[station])