From d0baac34ca830de5d26edc5c11fefe029b8bdafe Mon Sep 17 00:00:00 2001 From: kalt_r Date: Tue, 28 Jun 2016 13:11:33 +0200 Subject: [PATCH] Script execution --- script/jitter_scan.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/script/jitter_scan.py b/script/jitter_scan.py index 1d64bdf..e1f8baf 100644 --- a/script/jitter_scan.py +++ b/script/jitter_scan.py @@ -1,7 +1,7 @@ -import ch.psi.pshell.epics.Channel as Channel +import ch.psi.pshell.epics.ChannelDouble as PV latency = 0.3 @@ -21,9 +21,8 @@ print "Stop = ", stop print "Step = ", step # controlled variabales -cv_rf_phase = Channel(SECTION + "-RLLE-DSP:PHASE-REFERENCE",'d') -print cv_rf_phase.is_connected -cv_rf_phase.close() +cv_rf_phase = PV(SECTION + "-RLLE-DSP:PHASE-REFERENCE",'d') +print cv_rf_phase.readAsync() #cv_rf_amplt = ChannelDouble(SECTION + "-RLLE-DSP:AMPLT-REFERENCE")