Experimental Physics and Industrial Control System
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
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- 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
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024