From 5003ee49e945bddd6760894610b053f852233a41 Mon Sep 17 00:00:00 2001 From: sfop Date: Tue, 24 Jan 2017 10:48:57 +0100 Subject: [PATCH] Script execution --- script/RFscan/ShottkyScan.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/script/RFscan/ShottkyScan.py b/script/RFscan/ShottkyScan.py index 2df2fbf..1c36c99 100644 --- a/script/RFscan/ShottkyScan.py +++ b/script/RFscan/ShottkyScan.py @@ -40,3 +40,11 @@ finally: phase_ref = 80.0 phase_offset = - phase_ref caput("SINEG01-RSYS:CALC-VSUM-PHASE-OFFSET", phase_offset) + + +#Setting the return value +#set_return(50.0) +y = r.getReadable(0) +x = r.getPositions(0) +index_max = y.indexOf(max(y)) +_=x[index_max] \ No newline at end of file