From 4c85ed4e9a0611a8b6be84750c34ae401fcb15fd Mon Sep 17 00:00:00 2001 From: sfop Date: Tue, 5 Jul 2016 13:54:17 +0200 Subject: [PATCH] Script execution --- script/local.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/script/local.py b/script/local.py index 0e86826..20ff1d3 100755 --- a/script/local.py +++ b/script/local.py @@ -196,14 +196,15 @@ def add_convex_hull_plot(title, x,y, name=None, clear = False, x_range = None, y #CAS -import ch.psi.pshell.epics.CAS as CAS - -class ServerUrl(ReadonlyRegisterBase): - def doRead(self): - return controller.server.baseURL if controller.isServerEnabled(): + import ch.psi.pshell.epics.CAS as CAS #CAS.setServerPort(5062) + + class ServerUrl(ReadonlyRegisterBase): + def doRead(self): + return controller.server.baseURL + d = ServerUrl() d.initialize() cas5 = CAS("PSHELL_OP:SERVER_URL", d, 'string') \ No newline at end of file