Script execution

This commit is contained in:
sfop
2016-07-05 13:54:17 +02:00
parent ac866c4edf
commit 4c85ed4e9a

View File

@@ -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')