Hi Mark,
thanks for the answer.Unfortunately I was not able to figure out how this could solve my problem.
This clas stakes an NTNDArray and can convert it into an NDArray (toArray). One can also put an NDArray into it, but not retrieve an NTNDArray from it
(fromArray). But to make use of it I firs would need to get a handle to the NTNDArray that my PvaClientChannelPtr is connected to.
This class has 4 functions to retrieve data (getDouble, getDoubleArray, getString and getStringArray). There is no way to retrieve an NTNDArray this way.
I thought that PvaClientChannel would take care of the conversion internally but that seems not to be the case. So probably I have to stick with the old NDStdArray.
I am working on a client program that is making use of pvAccess and the qeFramework to retrieve and display data.
Am Dienstag, 24. Oktober 2023, 14:18:01 CEST schrieb Mark Rivers:
> Hi Jörn,
>
> You might want to take a look at the code here which converts between NDArrays and NTNDArrays.
>
> https://github.com/areaDetector/ADCore/blob/master/ADApp/ntndArrayConverterSrc/ntndArrayConverter.cpp
>
> 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
>
>
>
>
>
--
Dr. Jörn Dreyer
HIBEF DAQ + Controls
Institut für Strahlenpysik
Abt. FWKX
Tel: +49 351 260 3263
Fax: +49 351 260 123263
Helmholtz-Zentrum Dresden - Rossendorf e.V. (HZDR)
Bautzner Landstr. 400 | 01328 Dresden | Germany
Tel: +49 (0) 351 260 1234
http://www.hzdr.de
Vorstand: Prof. Dr. Sebastian M. Schmidt, Dr. Diana Stiller
Vereinsregister: VR 1693 beim Amtsgericht Dresden
- Replies:
- Re: Strange error from pvAccess Érico Nogueira Rolim via Tech-talk
- References:
- Strange error from pvAccess Jörn Dreyer via Tech-talk
- Re: Strange error from pvAccess Mark Rivers via Tech-talk
- Navigate by Date:
- Prev:
Re: [EXTERNAL] RTEMS BSP for MVME8100 Heinz Junkes via Tech-talk
- Next:
Re: PVList in C++ API Eusebio Naif Al-Soliman Fuentes 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
<2023>
2024
- Navigate by Thread:
- Prev:
Re: Strange error from pvAccess Mark Rivers via Tech-talk
- Next:
Re: Strange error from pvAccess Érico Nogueira Rolim 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
<2023>
2024
|