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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | FWD: Record referencing inside device support |
From: | Allan Serra Braga Bugyi <[email protected]> |
To: | "[email protected]" <[email protected]> |
Date: | Wed, 7 Nov 2018 17:14:41 +0000 |
Hi Andrew,
In my mind, the C code will be a file containing all the functions to connect, request data stream/polling, run equipment adjustment routines, change properties and close connection. All of this is provided by the manufacturer .so library (which I'm adding to the LIBS target of the IOC's Makefile). So, the IOC will carry everything within itself needed to control the equipment.
What I have in mind is to add this .cpp file to the SRCS target of the IOC's Makefile, and to call all of these functions using subroutine records.
The equipment is an interferometer from SmarAct, called PicoScale.
Best,
Allan S. B. Bugyi. De: [email protected] <[email protected]> em nome de Johnson, Andrew N. via Tech-talk <[email protected]>
Enviado: quarta-feira, 7 de novembro de 2018 14:54:16 Para: [email protected] Assunto: Re: Record referencing inside device support Hi Allan,
On 11/7/18 10:47 AM, Allan Serra Braga Bugyi wrote: > 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? What is "your C code" — where is it running and what calls it? You need to describe what you're doing it a bit more detail for us to be able to help you as the answers will be different for different circumstances... - Andrew -- Arguing for surveillance because you have nothing to hide is no different than making the claim, "I don't care about freedom of speech because I have nothing to say." -- Edward Snowdon |