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: How to read ENUM type PV using PvaClientChannel calss?
From: Jörn Dreyer via Tech-talk <tech-talk at aps.anl.gov>
To: tech-talk at aps.anl.gov
Date: Tue, 04 Oct 2022 14:20:08 +0200
Hi,

for a software I am currently working on I need to retrieve the datatype of an 
areaDetector image. Reading <imagePV>:DataType_RBV gives me UInt16 using 
caget.
In my code I create a PVAClientChannelPtr  using:

PVAClientPtr::channel("<imagePV>:DataType_RBV", "pv", 2.0)

The PvaClientChannel has to methods to get the value:
1) getDouble()
	Which in my case returns 0

2) getString
	which in my case returns NULL

Both do not give the expected value of 3. What is the recommended way to get 
the correct value from an enum type PV using the Pva classes from EPICS 7.0.6?

Regards,

Jörn



Navigate by Date:
Prev: Re: Read and Write errors with VME-EVR-300 Heinz Junkes via Tech-talk
Next: RE: EPICS Collaboration Meeting September 2022 in Ljubljana - videos available GAGET Alexis 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: Re: Read and Write errors with VME-EVR-300 Andrew Johnson via Tech-talk
Next: PVXS and Phoebus Florian Feldbauer 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, 05 Oct 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·