Files
dev/script/test/test22.py
2018-04-17 12:05:48 +02:00

34 lines
723 B
Python
Executable File

tutorial_path = "src/main/assembly/help/Tutorial/"
run(tutorial_path+"00_Devices")
import ch.psi.pshell.epics.CAS as CAS
cas = []
#CAS.setServerPort(5062)
CAS("TESTCAS:c1", ai1, 'double')
cas1 = CAS("TESTCAS:c2", ai1, 'int')
cas2 = CAS("TESTCAS:c3", ai1, 'string')
cas3 = CAS("TESTCAS:c4", ao1, 'double')
cas4 = CAS("TESTCAS:c5", dp1, 'string')
cas5 = CAS("TESTCAS:c6", wf1, 'double')
cas6 = CAS("TESTCAS:c7", wf1, 'int')
cas7 = CAS("TESTCAS:c8", wf1, 'string')
print caget("TESTCAS:c1")
print caget("TESTCAS:c2")
print caget("TESTCAS:c3")
print caget("TESTCAS:c4")
print caget("TESTCAS:c5")
print caget("TESTCAS:c6").tolist()
print caget("TESTCAS:c7").tolist()
print caget("TESTCAS:c8","[s").tolist()