Loading Common/Servers/DewarPositioner/src/Makefile +2 −1 Original line number Diff line number Diff line Loading @@ -2,9 +2,10 @@ # Marco Buttu <mbuttu@oa-cagliari.inaf.it> #----------------------------------------- CDB_SCHEMAS = DewarPositioner PY_SCRIPTS = # List of scripts to be installed in the bin directory PY_SCRIPTS = derotatorPosition PY_MODULES = PY_PACKAGES = DewarPositioner Loading Common/Servers/DewarPositioner/src/derotatorPosition.py 0 → 100644 +16 −0 Original line number Diff line number Diff line #!/usr/bin/env python from Acspy.Clients.SimpleClient import PySimpleClient import time client = PySimpleClient() dp = client.getComponent('RECEIVERS/DewarPositioner') counter = 0 while True: position = dp.getPosition() print "%d -> %.2f" %(counter, position) counter += 1 time.sleep(3) Loading
Common/Servers/DewarPositioner/src/Makefile +2 −1 Original line number Diff line number Diff line Loading @@ -2,9 +2,10 @@ # Marco Buttu <mbuttu@oa-cagliari.inaf.it> #----------------------------------------- CDB_SCHEMAS = DewarPositioner PY_SCRIPTS = # List of scripts to be installed in the bin directory PY_SCRIPTS = derotatorPosition PY_MODULES = PY_PACKAGES = DewarPositioner Loading
Common/Servers/DewarPositioner/src/derotatorPosition.py 0 → 100644 +16 −0 Original line number Diff line number Diff line #!/usr/bin/env python from Acspy.Clients.SimpleClient import PySimpleClient import time client = PySimpleClient() dp = client.getComponent('RECEIVERS/DewarPositioner') counter = 0 while True: position = dp.getPosition() print "%d -> %.2f" %(counter, position) counter += 1 time.sleep(3)