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: Get the type of a PV in C++ API |
From: | "Veseli, Sinisa via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Ralph Lange <ralph.lange at gmx.de>, Eusebio Naif Al-Soliman Fuentes <eunaif at correo.ugr.es> |
Cc: | Tech Talk <tech-talk at aps.anl.gov> |
Date: | Fri, 3 Nov 2023 15:50:09 +0000 |
Hi,
PvaPy C++ code still uses the original APIs, so perhaps this example helps:
https://github.com/epics-base/pvaPy/blob/master/src/pvaccess/PyPvDataUtility.cpp#L410
Sinisa
--
Siniša Veseli
Scientific Software Engineering & Data Management
Advanced Photon Source
Argonne National Laboratory
sveseli at anl.gov
(630)252-9182From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Eusebio Naif Al-Soliman Fuentes via Tech-talk <tech-talk at aps.anl.gov>
Sent: Friday, November 3, 2023 4:39 AM To: Ralph Lange <ralph.lange at gmx.de> Cc: Tech Talk <tech-talk at aps.anl.gov> Subject: Re: Get the type of a PV in C++ API Hello Ralph.
First of all, thanks for your reply. I know the existence of PVXS library and I have already used it succesfully on my project. The problem is that, at the moment, I've noticed that it's slow for our project and I'm looking for a solution
with the first-generation API.
It could also be an error in my code, what I'm doing at the moment is this:
pvxs::Value
reply
= ctxt.get(var_name_str).exec()->wait();
pvxs::TypeCode
type_var
= reply["value"].type();
Thanks, Eusebio.
---
Saludos/Best regards
University of Granada
Eusebio Naif Al-Soliman Fuentes eunaif at correo.ugr.es El 2023-11-02 15:01, Ralph Lange via Tech-talk escribió: Not an answer to your question, but... |