From a73161fa3890e38b44d60f30d70d3c81e2880d41 Mon Sep 17 00:00:00 2001 From: gobbo_a Date: Thu, 13 Apr 2017 09:40:35 +0200 Subject: [PATCH] Script execution --- script/RFscan/SchottkyScan.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/script/RFscan/SchottkyScan.py b/script/RFscan/SchottkyScan.py index 4354e22..7183ced 100644 --- a/script/RFscan/SchottkyScan.py +++ b/script/RFscan/SchottkyScan.py @@ -17,9 +17,10 @@ else: phase = ControlledVariable("Phase", "SINEG01-RSYS:SET-VSUM-PHASE", "SINEG01-RSYS:SET-VSUM-PHASE") phase.config.minValue =-180.0 phase.config.maxValue = 180.0 +phase.config.precision = 3 phase.config.resolution = 0.1 +phase.config.save() phase.initialize() - #st = Stream("ICTstream", dispatcher) #q = st.addScalar("Charge", "SINEG01-DICT215:B1_CHARGE", 1, 0) #st.initialize() @@ -27,6 +28,11 @@ phase.initialize() q = Channel("SINEG01-DICT215:B1_CHARGE", type = 'd', alias='ICT-Q') phase0 = phase.read() +print phase0 + +add_device(phase, True) + +""" try: qb = create_averager(q, nb, 0.100) r = lscan(phase, (qb), start, stop, step, latency=lat) @@ -45,4 +51,5 @@ x = rf_phase index_max = y.index(max(y)) phase_ref = x[index_max] - 80 -set_return(phase_ref) \ No newline at end of file +set_return(phase_ref) +""" \ No newline at end of file