New ScreenPanel
This commit is contained in:
34
script/test22.py
Executable file
34
script/test22.py
Executable file
@@ -0,0 +1,34 @@
|
||||
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()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user