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: Strange error from pvAccess |
From: | Mark Rivers via Tech-talk <tech-talk at aps.anl.gov> |
To: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Jörn Dreyer <j.dreyer at hzdr.de> |
Date: | Tue, 24 Oct 2023 12:18:01 +0000 |
Hi Jörn,
You
might want to take a look at the code here which converts between NDArrays and NTNDArrays.
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Jörn Dreyer via Tech-talk <tech-talk at aps.anl.gov>
Sent: Tuesday, October 24, 2023 7:04 AM To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: Strange error from pvAccess Hello,
I am using pvAccess to read image data from a NDPluginPVA in areaDetector. When I do the following lines in my program: PvaClientChannelPtr channel = pva->channel((m_ImagePrefix + *imgDataPV).toStdString().c_str(), m_AccessMethod->toStdString().c_str(), 2.0); epics::pvData::shared_vector<const double> array = channel->getDoubleArray(); I get an error: Error: PvaClientData::getDoubleArray() did not find a scalarArray field m_AccessMethod->toStdString().c_str() returns "pva". If I use the same code with channel access it works. Do I have to pass some special string to getDoubleArray in case of NDPluginPVA? Regards, Jörn |