Using GlassmanEJ_ET_FJ_FR instrument support in an application
Several files need minor modifications to use GlassmanEJ_ET_FJ_FR instrument support in
an application.
- Add the full path to the GlassmanEJ_ET_FJ_FR support directory to the
application configure/RELEASE file:
GlassmanEJ_ET_FJ_FR=xxxx/modules/instrument/glassmanej_et_fj_fr/<release>
Where <release> is the release number of of the GlassmanEJ_ET_FJ_FR support.
- Add stream and asyn support to application database definition file
The application database definition file must include the database
definition files for the stream package and for any needed ASYN
drivers. There are two ways that this can be done:
- If you are building your application database definition file from
an xxxInclude.dbd file you include the additional database
definitions in that file:
include "base.dbd"
include "stream.dbd"
include "drvAsynIPPort.dbd"
- If you are building your application database definition file from
the application Makefile you specify the aditional database
definitions there:
xxx_DBD += base.dbd
xxx_DBD += stream.dbd
xxx_DBD += drvAsynIPPort.dbd
- Add the stream and asyn support libraries to the application
You must link the stream support library and the ASYN support library
with the application. Add the following lines:
xxx_LIBS += stream
xxx_LIBS += asyn
before the
xxx_LIBS += $(EPICS_BASE_IOC_LIBS)
in the application Makefile.
- Set up the communication port in the application startup
script. As an example, a LAN/Serial adapter might be configured
like:
drvAsynIPPortConfigure("L0", "192.168.23.12:4098 COM", 0, 0, 0, 0)
- Load the GlassmanEJ_ET_FJ_FR support database records in the application startup script:
cd $(GlassmanEJ_ET_FJ_FR) (cd GlassmanEJ_ET_FJ_FR if using the vxWorks shell)
dbLoadRecords("db/devGlassmanEJ_ET_FJ_FR.db,"P=<P>,R=<R>,PORT=<PORT>,Vmax=<MAXV>,Imax=<MAXI>")
You'll have to provide appropriate values for the PV name prefixes
(<P> and <R>), and the port name (<PORT>). The port name must match the value specified in
an ASYN drvxxxxxConfigure command. The <MAXV> and <MAXI> values should match the supply full scale ranges (V and mA, respectively).
Installation and Building
After obtaining a copy of the distribution, it must be installed and built
for use at your site.
- Create an installation directory for the module. The path name
of this directory should end with modules/instrument/glassmanej_et_fj_fr.
- Place the distribution file into this directory.
- Execute the following commands:
cd modules/instrument/glassmanej_et_fj_fr
gunzip glassmanej_et_fj_fr<release>.tar.gz
tar xvf glassmanej_et_fj_fr<release>.tar
cd <release>
Where <release> is the release number of of the GlassmanEJ_ET_FJ_FR support.
- Edit the configure/RELEASE file and set the paths to your
installation of EPICS base, stream and ASYN support modules.
- Execute make in the top level directory.
Supply Control
From the manual "REMOTE DIGITAL INTERFACE" section:
Note that the Interlock on J3 must be
satisfied and the HV ON function must be operated by either pressing the
front panel HV ON button or using the Remote HV ON pins on J3, before
being able to control the unit with the digital interface.
Also, ensure that the two “REM” LEDs on the front panel are on before attempting to control the unit.
The supply has a 1.5 second watchdog timer. If a command is not
received within this interval following the previous command the supply
will turn of its output. The SCAN field of the supply monitor
record is set to 1 second which should keep the supply active.