Closedown
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user