Closedown

This commit is contained in:
sfop
2017-01-20 10:59:46 +01:00
parent dad78512e9
commit f632f973e8
2 changed files with 3 additions and 6 deletions

View File

@@ -2,15 +2,16 @@ import ch.psi.pshell.epics.ControlledVariable as ControlledVariable
if get_exec_pars().source == CommandSource.ui:
station = "SINSB04"
bpm_ch = "SINBC01-DBPM140"
else:
station = args[0]
bpm_ch = args[1]
start = caget(station + "-RSYS:SET-SCAN-START")
stop = caget(station + "-RSYS:SET-SCAN-STOP")
step = caget(station + "-RSYS:SET-SCAN-STEP")
lat = caget(station + "-RSYS:SET-SCAN-WAIT-TIME")
nb = caget(station + "-RSYS:SET-NUM-AVERAGE")
bpm_ch = caget(station + "-RSYS:DBPM")
disp = caget(bpm_ch + ":DISPERSION")
energy0 = caget(bpm_ch + ":ENERGY")

View File

@@ -6,18 +6,14 @@ if get_exec_pars().source == CommandSource.ui:
else:
station = args[0]
bpm_ch = args[1]
print(station)
print(bpm_ch)
start = caget(station + "-RSYS:SET-SCAN-START")
stop = caget(station + "-RSYS:SET-SCAN-STOP")
step = caget(station + "-RSYS:SET-SCAN-STEP")
lat = caget(station + "-RSYS:SET-SCAN-WAIT-TIME")
nb = caget(station + "-RSYS:SET-NUM-AVERAGE")
bpm_ch = caget(station + "-RSYS:DBPM")
disp = caget(bpm_ch + ":DISPERSION")
energy0 = caget(bpm_ch + ":ENERGY")
print(disp)
print(energy0)
phase = ControlledVariable("Phase", station + "-RSYS:SET-VSUM-PHASE-SIM", station + "-RSYS:GET-VSUM-PHASE-SIM")
phase.config.minValue =-45.0