EPICS exampleJava/helloPutGet

2016.08.26

Abstract

helloPutGet implements a simple channelRPC putGet.

Table of Contents


Overview

The example implements a simple putGet that has a top level pvStructure:

structure
    structure argument
        string value
    structure result
        string value
        time_t timeStamp
            long secondsPastEpoch
            int nanoseconds
            int userTag

It is designed to be accessed via a channelPutGet request. The client sets argument.value When the record processes it sets result.value to "Hello " concatenated with argument.value. Thus if the client sets argument.value equal to "World" result.value will be "Hello World". In addition the timeStamp is set to the time when process is called.

The example can be run on linux as follows:

Server

mrk> pwd
/home/epicsv4/master/exampleJava/helloPutGet
mrk> scripts/helloPutGetMain

Client

mrk> pwd
/home/epicsv4/master/exampleJava/helloPutGet
mrk> scripts/helloPutGetClient