This commit is contained in:
29
script/tutorial/54_ChannelAccessServer.js
Executable file
29
script/tutorial/54_ChannelAccessServer.js
Executable file
@@ -0,0 +1,29 @@
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
// Creation of EPICS CA servers over register devices
|
||||
///////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
CAS = Java.type('ch.psi.pshell.epics.CAS')
|
||||
|
||||
cas = []
|
||||
|
||||
//CAS.setServerPort(5062)
|
||||
|
||||
cas1 = new CAS("TESTCAS:c1", ai1, 'double')
|
||||
cas2 = new CAS("TESTCAS:c2", ai1, 'int')
|
||||
cas3 = new CAS("TESTCAS:c3", ai1, 'string')
|
||||
cas4 = new CAS("TESTCAS:c4", ao1, 'double')
|
||||
cas5 = new CAS("TESTCAS:c5", dp1, 'string')
|
||||
cas6 = new CAS("TESTCAS:c6", wf1, 'double')
|
||||
cas7 = new CAS("TESTCAS:c7", wf1, 'int')
|
||||
cas8 = new 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")
|
||||
)
|
||||
Reference in New Issue
Block a user