Emmanuel Mayssat wrote:
Hello,
I would like to print the field name that is in the DOL.
What are all the fields for the structure pao->dol?
pao->dol.type --- ok
I could not find this information in the header file.
My understanding is that the epics database DOL are DBF_INLINK.
Where is the associated structure?
See link.h for the different structure definitions. pao->dol is a
struct link which is typedef'd to DBLINK. You should check dol.type
which for a DOL field at runtime should only ever be CONSTANT, DB_LINK
or CA_LINK, and use the appropriate member in the union value to get
the field value - you'll only need to use the constantStr or pv_link
members. If you want to see some code that does this, look at the
function dbGetString() in base/src/dbStatic/dbStaticLib.c.
- Andrew
--
Not everything that can be counted counts,
and not everything that counts can be counted.
-- Albert Einstein
- References:
- dol->name Emmanuel Mayssat
- Navigate by Date:
- Prev:
Re: dol->name Tim Mooney
- Next:
Allen-Bradley VME Scanner Module 6008 Luchini, Kristi
- 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: dol->name Tim Mooney
- Next:
communication with rs485 multidrop device and command/response protocol btanu
- 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
|