Experimental Physics and Industrial Control System
|
Hi Allan,
If you look at some existing device-support code (for example, base-3.15.4/src/std/dev/devAaoSoft.c) you'll see that routines in that file are called with a pointer to the record struct. You might want
to look at this presentation from a recent EPICS class:
https://epics.anl.gov/docs/APS2015/01-EPICS-Device-Support.pdf
epics.anl.gov
APS EPICS Training • 2015-01-08 • Writing Device Support 2 Writing Device Support – Scope An overview of the concepts associated with writing EPICS Device Support routines.
|
Tim Mooney ( [email protected]) (630)252-5417
Beamline Controls Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab
From: Allan Serra Braga Bugyi <[email protected]>
Sent: Wednesday, November 7, 2018 11:10:54 AM
To: Mooney, Tim M.; [email protected]
Subject: Re: Record referencing inside device support
Hi Tim,
My limited comprehension of EPICS building facility may be blurring my understanding of the problem. In my comprehension, EPICS building facility generates header files from .db files, right? So, each record will be
an "instance" of the accordingly struct. However, this happens during compilation time. Where would it be possible to know the structs' names for referencing inside device support?
Best ,
Allan S. B. Bugyi
Technology Development Analyst
[email protected]
(+55 19) 3512-3520
SOL/Beamline Software Group
Brazilian Synchrotron Light
Laboratory (LNLS)
Center of Research in Energy and Materials (CNPEM)
http://lnls.cnpem.br
De: Mooney, Tim M. <[email protected]>
Enviado: quarta-feira, 7 de novembro de 2018 14:53:19
Para: Allan Serra Braga Bugyi; [email protected]
Assunto: Re: Record referencing inside device support
Hi Allan,
My first thought would be to write device support for the record. Device support has access to the record structure.
Tim Mooney ( [email protected]) (630)252-5417
Beamline Controls Group (www.aps.anl.gov)
Advanced Photon Source, Argonne National Lab
Hello all,
I have the need to access the record support structs inside my C code. What I want is to be able to access the records' fields to pass them as parameters to some functions. These functions are inside a dynamic library
.so from the manufacturer. Any idea or workaround?
Many thanks!
Allan S. B. Bugyi
Technology Development Analyst
[email protected]
(+55 19) 3512-3520
SOL/Beamline Software Group
Brazilian Synchrotron Light
Laboratory (LNLS)
Center of Research in Energy and Materials (CNPEM)
http://lnls.cnpem.br
|
- References:
- Record referencing inside device support Allan Serra Braga Bugyi
- Re: Record referencing inside device support Mooney, Tim M. via Tech-talk
- Re: Record referencing inside device support Allan Serra Braga Bugyi
- Navigate by Date:
- Prev:
FWD: Record referencing inside device support Allan Serra Braga Bugyi
- Next:
Re: Current Source / Power supply suggestion David Vine
- 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: Record referencing inside device support Allan Serra Braga Bugyi
- Next:
Re: Record referencing inside device support Johnson, Andrew N. via Tech-talk
- 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
|
ANJ, 07 Nov 2018 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|