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: Jörn Dreyer via Tech-talk <tech-talk at aps.anl.gov>
To: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Érico Nogueira Rolim <erico.rolim at lnls.br>
Date: Wed, 25 Oct 2023 13:53:55 +0200
Hi Erico,

yes I looked at pvxs already and it would simplify my code significantly. Unfortunately I also use EPICS-QT/qeFramework in my code that does not support pvxs yet. And I do not know if I can run pva and pvxs in parallel in my IOC. I need to test that. 

Regards,

Jörn

Am Mittwoch, 25. Oktober 2023, 13:16:38 CEST schrieb Érico Nogueira Rolim:
> 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.
> 



References:
Strange error from pvAccess Jörn Dreyer via Tech-talk
Re: Strange error from pvAccess Jörn Dreyer via Tech-talk
Re: Strange error from pvAccess Érico Nogueira Rolim via Tech-talk

Navigate by Date:
Prev: Re: Strange error from pvAccess Érico Nogueira Rolim via Tech-talk
Next: RE: [EXTERNAL] Re: RTEMS5 EPICS board support Baily, Scott A 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 Érico Nogueira Rolim via Tech-talk
Next: RE: [EXTERNAL] Re: RTEMS BSP for MVME8100 Baily, Scott A 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 ·