EPICS Home

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  <20192020  2021  2022  2023  2024  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: pvaClientCPP Release 4.5.0 access to a single sub field that has the correct type
From: Marty Kraimer via Tech-talk <[email protected]>
To: [email protected]
Date: Sat, 30 Nov 2019 10:58:52 -0500
You are correct that the code for puts only works on a top level field named  value.

A new issue has been created.
https://github.com/epics-base/pvaClientCPP/issues/63

Marty

On 11/28/19 11:12 AM, Heinz Junkes via Tech-talk wrote:
According the documentation to Release 4.5.0 :

Changes have been made for getDouble, putDouble, getDoubleArray, putDoubleArray, getString, putString, getStringArray, and putStringArray.

1) Previously each only had support for a top level field named value. Each now allows access to a single sub field that has the correct type. Thus pvRequest must select a single field. For example

     pva->channel("PVRdumbPowerSupply")->putDouble(1.0,"power.value" );


I try to access a double array  but with no success:

     string channelName("CRYVISIL:STM:FASTSCAN:IMAGE_CHUNK");
     string providerName("pva");
     PvaClientPtr pva = PvaClient::get(providerName);

        pva->channel(channelName, providerName, 1.0)->putDoubleArray(freeze(valx), "value.column0");

error message:
2019/11/28 10:06:17.754 sis0: void Sis3316Port::updateTask(): PvaClientData::putDoubleArray() did not find a scalarArray field

Command line works:

[junkes@h epics]$ pvget -r "value.column0" CRYVISIL:STM:FASTSCAN:IMAGE_CHUNK
CRYVISIL:STM:FASTSCAN:IMAGE_CHUNK structure
     structure value
         double[] column0 []

How can I address the DoubleArray?

Danke Heinz



Replies:
Re: pvaClientCPP Release 4.5.0 access to a single sub field that has the correct type Heinz Junkes via Tech-talk
References:
pvaClientCPP Release 4.5.0 access to a single sub field that has the correct type Heinz Junkes via Tech-talk

Navigate by Date:
Prev: lsi record for more than 40 characters doesn't work dmnr infn via Tech-talk
Next: Re: lsi record for more than 40 characters doesn't work Johnson, Andrew N. 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  <20192020  2021  2022  2023  2024 
Navigate by Thread:
Prev: pvaClientCPP Release 4.5.0 access to a single sub field that has the correct type Heinz Junkes via Tech-talk
Next: Re: pvaClientCPP Release 4.5.0 access to a single sub field that has the correct type Heinz Junkes 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  <20192020  2021  2022  2023  2024