Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017 Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
<== Date ==> <== Thread ==>

Subject: Re: EPICS IOC under Debian
From: "Konrad, Martin" <konrad@frib.msu.edu>
To: Bo Jakobsen <lister@f77.dk>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Thu, 10 Aug 2017 16:27:01 +0000
Hi Bo,
> I would therefore ask if anyone could provide a minimal example of 
> how to set up an IOC (based on the Debian package distribution)
> which uses e.g. the keysight-n5171b module.
1. Build the necessary packages (keysight-n5171b, epics-stream-dev,
epics-dev). Something like the following should get you started:

gbp clone --debian-branch=debian git@github.com:epicsdeb/keysight-n5171b.git
cd keysight-n5171b/
gbp buildpackage -us -uc --git-debian-branch=debian

2. Install the Debian packages:

dpkg -i keysight-n5171b epics-dev epics-stream-dev

3. makeBaseApp.pl -t ioc helloWorldIOC; makeBaseApp.pl -i -t ioc
helloWorldIOC

4. Add the following lines to configure/RELEASE:

KEYSIGHTN5171B=/usr/lib/epics
EPICS_BASE=/usr/lib/epics

5. Add the following lines to helloWorldIOCApp/src/Makefile:

helloWorldIOC_DBD += stream.dbd
helloWorldIOC_DBD += drvAsynIPPort.dbd

helloWorldIOC_LIBS += stream
helloWorldIOC_LIBS += asyn

6. Add something like the following to your st.cmd file:

drvAsynIPPortConfigure("FUNC1", "rf-test-func-n0001:5025", 100, 0, 0)
dbLoadRecords("${EPICS_BASE}/db/keysightN5171B.db", "PORT=FUNC1, SYS=RF,
SUB=TEST, DEV=SGEN, INST=N0002")

> But It seems to me that I might be doing it in a too complicated
> manner.
The packaging doesn't save you any effort when putting together an IOC
directory. It makes installing your dependencies a bit easier. It really
shines when it comes to ensuring that all bits and pieces are compatible
after upgrading some components.

HTH,

Martin

-- 
Martin Konrad
High Performance Controls Team Leader
Facility for Rare Isotope Beams
Michigan State University
640 South Shaw Lane
East Lansing, MI 48824-1321, USA
Tel. 517-908-7253
Email: konrad@frib.msu.edu

Navigate by Date:
Prev: EPICS IOC under Debian Bo Jakobsen
Next: remnant errlog thread Al Honey
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
Navigate by Thread:
Prev: EPICS IOC under Debian Bo Jakobsen
Next: remnant errlog thread Al Honey
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <2017
ANJ, 10 Aug 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·