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.
24 lines
557 B
Batchfile
24 lines
557 B
Batchfile
< 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
|
|
|