diff --git a/script/RFscan/gun_scan1.py b/script/RFscan/gun_scan1.py index 795dcd8..5a49018 100644 --- a/script/RFscan/gun_scan1.py +++ b/script/RFscan/gun_scan1.py @@ -1,10 +1,15 @@ import ch.psi.pshell.epics.ControlledVariable as ControlledVariable -start = caget("SINEG01-RSYS:SET-SCAN-START") -stop = caget("SINEG01-RSYS:SET-SCAN-STOP") -step = caget("SINEG01-RSYS:SET-SCAN-STEP") -nb = caget("SINEG01-RSYS:SET-NUM-AVERAGE") -lat = caget("SINEG01-RSYS:SET-SCAN-WAIT-TIME") +#start = caget("SINEG01-RSYS:SET-SCAN-START") +#stop = caget("SINEG01-RSYS:SET-SCAN-STOP") +#step = caget("SINEG01-RSYS:SET-SCAN-STEP") +#nb = caget("SINEG01-RSYS:SET-NUM-AVERAGE") +#lat = caget("SINEG01-RSYS:SET-SCAN-WAIT-TIME") +start = 0.0 +stop = 360.0 +step = 10.0 +nb = 1 +lat = 0.100 phase = ControlledVariable("Phase", "SINEG01-RSYS:SET-VSUM-PHASE-SIM", "SINEG01-RSYS:GET-VSUM-PHASE-SIM") phase.config.minValue =-45.0 @@ -27,7 +32,7 @@ def after(rec): caput("SINEG01-RSYS:GET-CHARGE-ARRAY", to_array(arr_charge,'d')) try: - qb = create_averager(q, nb, 0.100) + #qb = create_averager(q, nb, 0.100) r = lscan(phase, (q), start, stop, step, latency=lat, after_read = after) rf_phase = r.getPositions(0) charge = [val.mean for val in r.getReadable(0)]