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:
Dave Hickin
2015-12-08 12:20:43 +00:00
parent a99b08fd02
commit bc3335d4f9
33 changed files with 1015 additions and 0 deletions

View 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