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: | RE: Record referencing inside device support |
From: | Mark Rivers <[email protected]> |
To: | 'Allan Serra Braga Bugyi' <[email protected]>, "[email protected]" <[email protected]> |
Date: | Wed, 7 Nov 2018 17:47:48 +0000 |
It sounds to me like it might be better to write a driver based on asynPortDriver, rather than writing device support.
Device support is more difficult because you need to understand how each record works. If you write a driver based on asynPortDriver you can use the standard asyn device support. https://epics.anl.gov/modules/soft/asyn/R4-34/asynPortDriver.html
This is a tutorial on writing an asynPortDriver, starting from a very simple version and working up to a more complex one. This is for a Measurement Computing device using the vendor library. https://github.com/epics-modules/measComp/blob/master/documentation/measCompTutorial.pdf
Mark From: [email protected] <[email protected]>
On Behalf Of Allan Serra Braga Bugyi 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, De:
[email protected] <[email protected]>
em nome de Johnson, Andrew N. via Tech-talk <[email protected]> Hi Allan, |