This example provides an EPICS V4 database that hosts an EPICS V4 PVRecord. The record holds a normative type pvData structure. The records purpose is to hold data relevant to a water tower. This includes water level stats, valve status, and pump status. The client program will connect to the database and then perform some demonstrations on how to interact with the record.
If a proper RELEASE.local file exists two directory levels above waterSim, or in waterSim/configure/RELEASE.local then just type:
make
It can also be built by:
cp configure/ExampleRELEASE.local configure/RELEASE.local
edit file configure/RELEASE.local
make
> pwd
/home/Epics/EPICS-CPP-4.5.0/waterSim/
> bin/$EPICS_HOST_ARCH/waterSimMain
> pwd
/home/Epics/EPICS-CPP-4.5.0/waterSim/
> serverRunner
> pwd
/home/Epics/EPICS-CPP-4.5.0/waterSim/
> bin/$EPICS_HOST_ARCH/waterSimclient
> pwd
/home/Epics/EPICS-CPP-4.5.0/waterSim/
> clientRunner
This directory has the following files:
waterSim.h
This directory has the following files:
-
waterSimClient.cpp
Code for a client program that uses pvaClient to access the record hosted on the database. -
waterSim.cpp Code that creates a PVRecord.
-
waterSimMain.cpp Code that allows the PVRecord to be available via a standalone main program.