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