EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: sequencer installation
From: Emmanuel Mayssat <[email protected]>
To: Eric Norum <[email protected]>
Cc: epics <[email protected]>
Date: Fri, 06 Oct 2006 14:53:45 -0700
You are right, the registrar function was missing.

1/ Compile the snl program to turn it into a c program
   (In this program there is a epicsExportRegistrar command )
2/ Include the c source from 1 into the IOC code by editing the IOC
Makefile
3/ compile
4/ start the IOC, with a dbd file that includes the registrar function
5/ ... it works ...

I was actually starting the ioc executable without doing a
dbloaddatabase(<... dbd file>). So the registrar function was not
executed.

Thanks,
--
E


On Fri, 2006-10-06 at 16:17 -0500, Eric Norum wrote:
> Did you:
> a) Create a .dbd file with a registrar command for the sequence
> program?  For example, I've got an sequencer source file with 'program
> scanAcqPll' at the top and a scanPll.dbd file containing:
> registrar(scanAcqPllRegistrar)
> 
> 
> 
> 
> b) Add that .dbd file to your application.  Using my system as an
> example again, the application Makefile contains the line:
> rftest_DBD += scanPll.dbd
>   BTW -- my application Makefile also contains:
> rftest_SRCS += scanPll.st
>   and
> rftest_LIBS += seq pv
> 
> 
> 
> 
> c) Do a make distclean ; make 
> 
> 
> 
> On Oct 6, 2006, at 1:41 PM, Emmanuel Mayssat wrote:
> 
> > Here again, I have to deal with the not-s-straight-forward epics
> > build
> > system.
> > 
> > 
> > So far I always build against the base. I am referring to the
> > configuration and/or config directories at the top my device source.
> > In those files the SNC make variable is not set etc.
> > 
> > 
> > The sequencer source build correctly but against a local
> > configuration/config directory.
> > 
> > 
> > So far I was able to go from snl to c code and include the c code in
> > my
> > driver source. But, when I type "help" at the iocsh prompt I do not
> > see
> > the sequencer commands (such as seqShow, etc).
> > 
> > 
> > 1/ Where are those commands coming from? A library ?
> > 2/ I include the seq pv seqDev libraries in my ioc. My sequencer.c
> > program is also added as a SRCS to that same ioc. Everything compile
> > correctly. But still cannot see the seqShow command in the iocsh
> > help.
> > 
> > 
> > What am I not doing correctly ?
> 
> 
> 
> -- 
> Eric Norum <[email protected]>
> Advanced Photon Source
> Argonne National Laboratory
> (630) 252-4793
> 
> 
> 
> 


References:
sequencer installation Emmanuel Mayssat
Re: sequencer installation Eric Norum

Navigate by Date:
Prev: Re: sequencer installation Eric Norum
Next: RE: sequencer installation Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: sequencer installation Eric Norum
Next: RE: sequencer installation Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  <20062007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 02 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·