Search/Navigation:
Related:
SLAC/EPP
/HPS Public
Jefferson Lab/Hall B
/HPS Run Wiki
S30XL-LESA/LDMX
The epics setup for HPS has been checked to run on the zed board but is developed mainly on the hps tracker machine in group C.
The development is based from the standard epics_example at:
/home/tracker/pelle/epics/example
and is currently on github under user "perhansson".
svn://svn.freehep.org/hps/epics/trunk
Setup EPICS environment (part of the DAQ setup script):
$ cd /u1/software/software_new
$ source setup_env.csh
Go to the MPOD App IOC boot directory:
$ cd /home/tracker/pelle/epics/svt-epics/example/iocBoot/iochvCaen/
$./svt-voltages.cmd
This should run the epics hvCaenApp IOC and you should see output to the screen. Depending on the debug level (see below) there might be lots of output here.
Open up the GUIs according to the instructions below.
Setup EPICS environment (part of the DAQ setup script):
$ cd /u1/software/software_new
$ source setup_env.csh
$ cd /home/tracker/pelle/epics/svt-epics/example/iocBoot/iocmyexampleApp
$./st.cmd
This should run the epics IOC and you should see output to the screen where it queries the socket for information. Depending on the debug level (see below) there might be lots of output here. If there is no control server running or it's not configured properly (see below) you should see it retrying to connect.
Power the FEB according to instruction below with GUIs or manually.
Start the control server and GUI
$ cd /u1/software/software_new
$ source setup_env.csh
$ ./bin/frontEndTestGui &
If the IOC is running (if not start it) you should see that the IOC now gets information from the control server.
NOTE: if you don't see a connection you might need to change the TCP/IP settings in the dedicated GUI.
$ cd /u1/software/software_new
$ source setup_env.csh
Go to the SVT MEDM directory:
$ /home/tracker/pelle/epics/svt-medm
Notes on the hybrid power:
var mySubDebug 0
Compiling source and DB
$ cd /home/tracker/pelle/epics/example/myexampleApp
$ make
Interesting files for development:
EPICS Db: /home/tracker/pelle/epics/example/myexampleApp/Db/
dbSVT.db: controls the polling from the control server
dbFebTemp.db: FEB temperature records
dbHybLV.db: hybrid low voltage records
dbHybT.db: hybrid temperature records
/home/tracker/pelle/epics/example/myexampleApp/src/
dbSubExample.c: contains backend code for parsing and delegating communication with the control server.
client_util.c: Utility functions to communicate with control server and parsing/creating of xml strings