Difference between revisions of "Integrated Low/High Voltage system application for Hall-D Detectors"
From GlueXWiki
(Created page with "== Requirements == == Downloading the software == svn co https://halldsvn.jlab.org/repos/trunk/controls/epics") |
|||
Line 1: | Line 1: | ||
== Requirements == | == Requirements == | ||
+ | |||
+ | EPICS base must be installed and EPICS environment variables must be defined. | ||
== Downloading the software == | == Downloading the software == | ||
svn co https://halldsvn.jlab.org/repos/trunk/controls/epics | svn co https://halldsvn.jlab.org/repos/trunk/controls/epics | ||
+ | |||
+ | == Setting up the environment == | ||
+ | |||
+ | If you sourced environment of EPICS base, then you'll need to do something like this: | ||
+ | |||
+ | # A script to change the EPICS build area location to a local for a user directory | ||
+ | # This is needed if a user not hdsys wants to have his own development area and not | ||
+ | # to interfere with the official Hall D EPICS build. | ||
+ | |||
+ | # Define the root directory where the drivers and applications will be build | ||
+ | # setenv EPICS_BUILD ~/epics/R3-14-12-3 | ||
+ | setenv EPICS_BUILD ~/controls/epics | ||
+ | |||
+ | # Set CA server port to be different from standart 5064. The CA client port will not change | ||
+ | # because of this command | ||
+ | # setenv EPICS_CAS_SERVER_PORT 6064 | ||
+ | |||
+ | # Set where the drivers and applications are checked-out and build using EPICS_BUILD variable | ||
+ | # this is important for someone compiling drivers and compiling and running applications | ||
+ | setenv APP ${EPICS_BUILD}/app | ||
+ | setenv DRIVERS ${EPICS_BUILD}/drivers | ||
+ | |||
+ | # Set the default SNMP MIB-file directory and the MIB-file list | ||
+ | setenv MIBDIRS "${DRIVERS}/mibs:/usr/share/snmp/mibs/" | ||
+ | setenv MIBS "ALL" | ||
+ | |||
+ | # Put the bin directories into the PATH and lib directories into the LD_LIBRARY_PATH variables | ||
+ | setenv PATH "${APP}/bin/${EPICS_HOST_ARCH}:${PATH}:${DRIVERS}/bin/${EPICS_HOST_ARCH}:${PATH}:" | ||
+ | setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${APP}/lib/${EPICS_HOST_ARCH}:${DRIVERS}/lib/${EPICS_HOST_ARCH}:" | ||
+ | |||
+ | |||
+ | |||
+ | APP=/home/nerses/controls/epics/app | ||
+ | CLASSPATH=/halldfs1/gluex/controls/epics/R3-14-12-3/extensions/javalib | ||
+ | CSS=/gluex/controls/css | ||
+ | CSS_VERSION=3.1.4 | ||
+ | DRIVERS=/home/nerses/controls/epics/drivers | ||
+ | |||
+ | EPICS_AR_PORT=7002 | ||
+ | EPICS_BASE=/halldfs1/gluex/controls/epics/R3-14-12-3/base | ||
+ | EPICS_BUILD=/home/nerses/controls/epics | ||
+ | EPICS_CA_ADDR_LIST= | ||
+ | EPICS_CA_MAX_ARRAY_BYTES=100000 | ||
+ | EPICS_DISPLAY_PATH=/halldfs1/gluex/controls/epics/R3-14-12-3/app/medm | ||
+ | EPICS_EXTENSIONS=/halldfs1/gluex/controls/epics/R3-14-12-3/extensions | ||
+ | EPICS_GATEWAY_HOME=/halldfs1/gluex/controls/epics/R3-14-12-3/../gateway | ||
+ | EPICS=/halldfs1/gluex/controls/epics/R3-14-12-3 | ||
+ | EPICS_HOST_ARCH=linux-x86_64 | ||
+ | EPICS_SUPPORT=/halldfs1/gluex/controls/epics/R3-14-12-3/support | ||
+ | EPICS_VERSION=3-14-12-3 | ||
+ | MIBDIRS=/home/nerses/controls/epics/drivers/mibs:/usr/share/snmp/mibs/ | ||
+ | MIBS=ALL | ||
+ | MYSQINC=/usr/include/mysql | ||
+ | MYSQLIB=/usr/lib64/mysql | ||
+ | MYSQL_INCLUDE_PATH=/usr/include/mysql | ||
+ | MYSQL_LIB_PATH=/usr/lib64/mysql | ||
+ | ORBITSCREENHOME=/halldfs1/gluex/controls/epics/R3-14-12-3/extensions/src/orbitscreen | ||
+ | QTDIR=/usr/lib64/qt-3.3 | ||
+ | QTINC=/usr/lib64/qt-3.3/include | ||
+ | QTLIB=/usr/lib64/qt-3.3/lib |
Revision as of 17:13, 7 November 2013
Requirements
EPICS base must be installed and EPICS environment variables must be defined.
Downloading the software
svn co https://halldsvn.jlab.org/repos/trunk/controls/epics
Setting up the environment
If you sourced environment of EPICS base, then you'll need to do something like this:
# A script to change the EPICS build area location to a local for a user directory # This is needed if a user not hdsys wants to have his own development area and not # to interfere with the official Hall D EPICS build. # Define the root directory where the drivers and applications will be build # setenv EPICS_BUILD ~/epics/R3-14-12-3 setenv EPICS_BUILD ~/controls/epics # Set CA server port to be different from standart 5064. The CA client port will not change # because of this command # setenv EPICS_CAS_SERVER_PORT 6064 # Set where the drivers and applications are checked-out and build using EPICS_BUILD variable # this is important for someone compiling drivers and compiling and running applications setenv APP ${EPICS_BUILD}/app setenv DRIVERS ${EPICS_BUILD}/drivers # Set the default SNMP MIB-file directory and the MIB-file list setenv MIBDIRS "${DRIVERS}/mibs:/usr/share/snmp/mibs/" setenv MIBS "ALL" # Put the bin directories into the PATH and lib directories into the LD_LIBRARY_PATH variables setenv PATH "${APP}/bin/${EPICS_HOST_ARCH}:${PATH}:${DRIVERS}/bin/${EPICS_HOST_ARCH}:${PATH}:" setenv LD_LIBRARY_PATH "${LD_LIBRARY_PATH}:${APP}/lib/${EPICS_HOST_ARCH}:${DRIVERS}/lib/${EPICS_HOST_ARCH}:"
APP=/home/nerses/controls/epics/app CLASSPATH=/halldfs1/gluex/controls/epics/R3-14-12-3/extensions/javalib CSS=/gluex/controls/css CSS_VERSION=3.1.4 DRIVERS=/home/nerses/controls/epics/drivers EPICS_AR_PORT=7002 EPICS_BASE=/halldfs1/gluex/controls/epics/R3-14-12-3/base EPICS_BUILD=/home/nerses/controls/epics EPICS_CA_ADDR_LIST= EPICS_CA_MAX_ARRAY_BYTES=100000 EPICS_DISPLAY_PATH=/halldfs1/gluex/controls/epics/R3-14-12-3/app/medm EPICS_EXTENSIONS=/halldfs1/gluex/controls/epics/R3-14-12-3/extensions EPICS_GATEWAY_HOME=/halldfs1/gluex/controls/epics/R3-14-12-3/../gateway EPICS=/halldfs1/gluex/controls/epics/R3-14-12-3 EPICS_HOST_ARCH=linux-x86_64 EPICS_SUPPORT=/halldfs1/gluex/controls/epics/R3-14-12-3/support EPICS_VERSION=3-14-12-3 MIBDIRS=/home/nerses/controls/epics/drivers/mibs:/usr/share/snmp/mibs/ MIBS=ALL MYSQINC=/usr/include/mysql MYSQLIB=/usr/lib64/mysql MYSQL_INCLUDE_PATH=/usr/include/mysql MYSQL_LIB_PATH=/usr/lib64/mysql ORBITSCREENHOME=/halldfs1/gluex/controls/epics/R3-14-12-3/extensions/src/orbitscreen QTDIR=/usr/lib64/qt-3.3 QTINC=/usr/lib64/qt-3.3/include QTLIB=/usr/lib64/qt-3.3/lib