Differences between revisions 3 and 4
Revision 3 as of 2010-04-14 15:14:19
Size: 825
Editor: YoichiAso
Comment:
Revision 4 as of 2010-04-14 15:23:15
Size: 1552
Editor: YoichiAso
Comment:
Deletions are marked like this. Additions are marked like this.
Line 32: Line 32:

== EPICS IOC ==
We want to have a dedicated IOC for the PicoMotor controller. Actually, this section gives you a general procedure to make a generic IOC.

Make a directory in {{{/cvs/cds/kami/target}}}. In this example, we create {{{/cvs/cds/kami/target/k1pico}}}.<<BR>>
Run the following commands in the created directory:
{{{
/opt/epics/base/bin/linux-x86_64/makeBaseApp.pl -t example k1pico
/opt/epics/base/bin/linux-x86_64/makeBaseApp.pl -i -t example k1pico
}}}
{{{example}}} is the name of a template. {{{example}}} is a good template to start. {{{k1pico}}} is the name of your IOC. Usually, we want to start it with {{{k1}}}.

Type {{{make}}} in the directory. The EPICS build system will compile an IOC.

PicoMotor control system using EPICS and Python

Installation

We assume that EPICS base is installed in /opt/epics/base.

EpicsCA

Download EpicsCA version 2 (not 3 yet) from below:

http://cars9.uchicago.edu/~newville/Epics/Python/

Extract it in /opt/epics/.

Set appropriate environmental variables (these are actually set by .cshrc, so you shouldn't have to be bothered).

LD_LIBRARY_PATH=/opt/epics/base/lib/linux-x86_64
EPICS_BASE=/opt/epics/base
EPICS_EXTENSIONS=/opt/epics/extensions
EPICS_HOST_ARCH=linux-x86_64

Run

python setup.py build

You may need to install development files for python, if these are not installed yet.

Run

python setup.py install

as root. Be sure to source /home/controls/.cshrc to set the environmental variables.

EPICS IOC

We want to have a dedicated IOC for the PicoMotor controller. Actually, this section gives you a general procedure to make a generic IOC.

Make a directory in /cvs/cds/kami/target. In this example, we create /cvs/cds/kami/target/k1pico.
Run the following commands in the created directory:

/opt/epics/base/bin/linux-x86_64/makeBaseApp.pl -t example k1pico
/opt/epics/base/bin/linux-x86_64/makeBaseApp.pl -i -t example k1pico

example is the name of a template. example is a good template to start. k1pico is the name of your IOC. Usually, we want to start it with k1.

Type make in the directory. The EPICS build system will compile an IOC.

CLIO/Technicals/PMEPICS (last edited 2010-04-15 22:51:13 by YoichiAso)