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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Record referencing inside device support |
From: | "Mooney, Tim M. via Tech-talk" <[email protected]> |
To: | Allan Serra Braga Bugyi <[email protected]>, "[email protected]" <[email protected]> |
Date: | Wed, 7 Nov 2018 17:20:43 +0000 |
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
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 From: [email protected] <[email protected]> on behalf of Allan Serra Braga Bugyi <[email protected]>
Sent: Wednesday, November 7, 2018 10:47:25 AM To: [email protected] Subject: Record referencing inside device support 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 |