23 lines
866 B
Python
23 lines
866 B
Python
if get_exec_pars().source == CommandSource.ui:
|
|
station = "STEST01"
|
|
else:
|
|
station = args[0]
|
|
|
|
phase_set = caget(station + "-RSYS:PHASE-SET")
|
|
ampli_set = caget(station + "-RSYS:AMPLT-SET")
|
|
power_set = caget(station + "-RSYS:POWER-SET")
|
|
|
|
if (phase_set == 'True'):
|
|
phase_offset = caget(station + "-RSYS:SET-VSUM-PHASE-OFFSET-BASE-CALC")
|
|
caput(station + "-RSYS:SET-VSUM-PHASE-OFFSET-BASE", phase_offset)
|
|
print phase_set
|
|
if (ampli_set == 'True'):
|
|
amplitude_scale = caget(station + "-RSYS:SET-VSUM-AMPLT-SCALE-CALC")
|
|
caput(station + "-RSYS:SET-VSUM-AMPLT-SCALE", amplitude_scale)
|
|
print ampli_set
|
|
if (power_set == 'True'):
|
|
power_scale = caget(station + "-RSYS:SET-VOLT-POWER-SCALE-CALC")
|
|
caput(station + "-RSYS:SET-VOLT-POWER-SCALE", power_scale)
|
|
print power_set
|
|
caput(station + "-RSYS:CMD-LOAD-CALIB-BEAM", 1)
|