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: Re: Strange error from pvAccess
From: Érico Nogueira Rolim via Tech-talk <tech-talk at aps.anl.gov>
To: Jörn Dreyer <j.dreyer at hzdr.de>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Wed, 25 Oct 2023 11:16:38 +0000
Hi Jörn,

Have you tried using PVXS [1]? I would expect its interface to be much
easier to use.

Cheers,
Érico

[1] https://github.com/mdavidsaver/pvxs

On 25/10/2023 01:35, Jörn Dreyer via Tech-talk wrote:
> 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
>>
>>
>>
>>
>>
>


Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.

Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.

Replies:
Re: Strange error from pvAccess Jörn Dreyer via Tech-talk
References:
Strange error from pvAccess Jörn Dreyer via Tech-talk
Re: Strange error from pvAccess Mark Rivers via Tech-talk
Re: Strange error from pvAccess Jörn Dreyer via Tech-talk

Navigate by Date:
Prev: Re: PVList in C++ API Eusebio Naif Al-Soliman Fuentes via Tech-talk
Next: Re: Strange error from pvAccess Jörn Dreyer 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: Strange error from pvAccess Jörn Dreyer via Tech-talk
Next: Re: Strange error from pvAccess Jörn Dreyer 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, 25 Oct 2023 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·