g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Can epics live simpler?
From: "Liyu, Andrei" <liyua@ornl.gov>
To: tech-talk@aps.anl.gov
Date: Fri, 16 Jan 2004 10:30:42 -0500
Hi,
	I hope I understood how I can do device support. Then I move to
3.14.4 version and try to do it. After 3 days (I worked time to time) I
understood basic steps. This is list of steps:

1. in .../src/ directory
	- create devInterfaceSoft.c file with special rules
		...
		struct {
			...
		} devInterfaceSoft{
			...
		};
		...
	- create InterfaceSupport.dbd file
		device( waveform, CONSTANT, devInterfaceSoft,
"DetectorInterface")
	- add to <name>Include.dbd (name from makeBaseApp ...) after
include "base.dbd" line next line
		include "InterfaceSupport.dbd"
	- add to Makefile file after LIBRARY_IOC += ***Support
(!!!Support from Example template)
		DBD += InterfaceSupport.dbd
		xxxSupport_SRCS += devInterfaceSoft.c

Now you can be happy with first compiling.

2. in .../db/ directory
	- create dbDetector.db file
		record( waveform, "$(Detector):SetParameters"){
			...
			field(DTYP, "DetectorInterface")
			...
		}
	- add to Makefile
		DB += dbDetector.db

Now you can be happy with second compiling.		

3. At end you can begin to use this device.
	- add in st.cmd 
		dbLoadRecords("db/dbDetector.db","Detector=Detector1")


After that I have a question. Moreover, I have this question all time
when I try to do new or with new version of Epics:
Can Epics live simpler? Can it be more comfortable for user?
What do Epics users think about? Maybe it is Ok and I couldn't
understand this :)?

Have good holidays,
Andrei.


Navigate by Date:
Prev: RE: Epics server stop Liyu, Andrei
Next: Behavior of tsLib, does TSinit get called by defaut. Thompson, David H.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
Navigate by Thread:
Prev: Re: ? monitor and waveform record Steven Hartman
Next: Behavior of tsLib, does TSinit get called by defaut. Thompson, David H.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·