EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20222023  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: RE: channel-access support for c++ [SEC=OFFICIAL]
From: "STARRITT, Andrew via Tech-talk" <tech-talk at aps.anl.gov>
To: "EPICS Tech Talk (tech-talk at aps.anl.gov)" <tech-talk at aps.anl.gov>
Date: Sun, 6 Feb 2022 23:45:57 +0000
Hi Laurenz,
Another option is the acai library here: https://github.com/andrewstarritt/acai
It provides C++ classes, and the client class has virtual functions for call backs.
It is used by the EPICS Qt framework and by other applications at the Australian Synchrotron.

Regards
Andrew
OFFICIAL

-----Original Message-----
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Mark Rivers via Tech-talk
Sent: Saturday, 5 February 2022 5:27 AM
To: Laurenz Rettig <rettig at fhi-berlin.mpg.de>
Cc: tech-talk at aps.anl.gov
Subject: RE: channel-access support for c++

CAUTION, EXTERNAL EMAIL: This message has come from a source outside of ANSTO. Do not take action, click links or open attachments unless you recognise and trust the source of this email and know the content is safe. Please report suspicious emails to servicedesk at ansto.gov.au as an attachment.

The ezca library is one such wrapper.  https://github.com/epics-extensions/ezca

It is not C++ classes, but it does remove the need to write callback functions, etc.  It lets you do basic Channel Access in a few lines of code.

Mark


-----Original Message-----
From: Tech-talk <tech-talk-bounces at aps.anl.gov> On Behalf Of Laurenz Rettig via Tech-talk
Sent: Friday, February 4, 2022 12:22 PM
To: tech-talk at aps.anl.gov
Subject: channel-access support for c++

Hello,

This might sound like a stupid question, as epics is written in c, but I am looking for a _simple and convenient_ way to add channel-access support to a c++ program (that has nothing to do with epics so far, on windows), i.e. reading and writing from and to epics channels. Best would be to just import an epics library if possible? In many programming languages there are quite convenient wrappers for this (e.g. 
python), but for c/c++ I did not find anything similar. Could anyone point me to a good example for such a case?

Thanks, Laurenz

-- 
Dr. Laurenz Rettig                  rettig at fhi-berlin.mpg.de
Emmy Noether Research Group Dynamics of Correlated Materials Fritz Haber Institute of the Max Planck Society Department of Physical Chemistry
Faradayweg 4-6                         Tel: +49 30 8413 5225
14195 Berlin, Germany                  Fax: +49 30 8413-5387

Navigate by Date:
Prev: Error during the compilation of qeframework for qtepics Ewen Mallegol via Tech-talk
Next: Re: .RE: Configuring serial communication with Lakeshore 331 via Moxa (Mark Rivers) Bradnick, Ben (DLSLtd, RAL, LSCI) 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  <20222023  2024 
Navigate by Thread:
Prev: Error during the compilation of qeframework for qtepics Ewen Mallegol via Tech-talk
Next: Software management plan for EPICS bob dalesio 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  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·