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  2022  <20232024  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  <20232024 
<== Date ==> <== Thread ==>

Subject: Get the type of a PV in C++ API
From: Eusebio Naif Al-Soliman Fuentes via Tech-talk <tech-talk at aps.anl.gov>
To: Tech Talk <tech-talk at aps.anl.gov>
Date: Thu, 02 Nov 2023 12:45:42 +0100
Hello everybody.
 
I have a small question. In the pvaClient library for C++ (https://docs.epics-controls.org/projects/pvaclient-cpp/en/latest/) there are many examples to get the value and other fields of a PV.
 
However, in order to get the value as a double, like in this example https://github.com/epics-rip/exampleCPP/blob/master/exampleClient/src/examplePvaClientGet.cpp, you have to previously know that the PV value is a double. Is there any method to get the type (int, long, double...) of the value field? Something like ->getType().
 
Thanks in advance.
--

Saludos/Best regards

University of Granada  

Eusebio Naif Al-Soliman Fuentes
MSc. Data Science and Computer Engineering

eunaif at correo.ugr.es


Replies:
Re: Get the type of a PV in C++ API Ralph Lange via Tech-talk
Re: Get the type of a PV in C++ API Michael Davidsaver via Tech-talk

Navigate by Date:
Prev: RE: fanout is not working Pearson, Matthew via Tech-talk
Next: Re: Get the type of a PV in C++ API Ralph Lange 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  <20232024 
Navigate by Thread:
Prev: Re: Every thing is working Tran, Phi Dung via Tech-talk
Next: Re: Get the type of a PV in C++ API Ralph Lange 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  <20232024 
ANJ, 03 Nov 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·