Add example of record which supports RPC and a client
Record has x and y-coordinate fields and a timestamp and also provides a service which sets (x,y) to a sequence of values. An RPC client application (move) sends positions as an array.
This commit is contained in:
23
exampleRPC/iocBoot/exampleRPC/st.cmd
Normal file
23
exampleRPC/iocBoot/exampleRPC/st.cmd
Normal file
@@ -0,0 +1,23 @@
|
||||
< envPaths
|
||||
|
||||
cd ${TOP}
|
||||
|
||||
## Register all support components
|
||||
dbLoadDatabase("dbd/exampleRPC.dbd")
|
||||
exampleRPC_registerRecordDeviceDriver(pdbbase)
|
||||
|
||||
## Load record instances
|
||||
dbLoadRecords("db/dbScalar.db","name=pvdouble,type=ao")
|
||||
dbLoadRecords("db/dbArray.db","name=pvdoubleArray,type=DOUBLE")
|
||||
dbLoadRecords("db/dbStringArray.db","name=pvstringArray")
|
||||
dbLoadRecords("db/dbEnum.db","name=pvenum")
|
||||
dbLoadRecords("db/dbCounter.db","name=pvcounter");
|
||||
|
||||
cd ${TOP}/iocBoot/${IOC}
|
||||
iocInit()
|
||||
dbl
|
||||
epicsThreadSleep(1.0)
|
||||
exampleRPCCreateRecord mydevice
|
||||
startPVAServer
|
||||
pvdbl
|
||||
|
||||
Reference in New Issue
Block a user