EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024  Index 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: Get sub field of Union
From: Benjamin Franksen via Core-talk <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Wed, 27 Mar 2019 19:08:56 +0100
Am 21.03.19 um 16:43 schrieb Shen, Guobao via Core-talk:
> $ pvinfo Test:Data
> …
> structure
>     uint ArrayId
>     double[] Time
>     union value
>         float[] data1
>         double[] data2

Am 22.03.19 um 00:03 schrieb Michael Davidsaver via Core-talk:
> This will work.
> 
>> $ pvget -r value Test:Data
> This is not meaningful.
> 
>> $ pvget -r value.data1 Test:Data

I think it is quite meaningful: I would expect it to give me the value
of value.data1 if this is what's in the union, otherwise (i.e. if what's
in the union is data2) throw an error.

The "data1" and "data2" identifiers in the structure info strongly
suggest to me that they can be used to access the corresponding data. If
this is not indended or supported, then these names should not be
displayed by pvinfo.

Cheers
Ben

Attachment: signature.asc
Description: OpenPGP digital signature


References:
Get sub field of Union Shen, Guobao via Core-talk
Re: Get sub field of Union Michael Davidsaver via Core-talk
Re: Get sub field of Union Shen, Guobao via Core-talk
Re: Get sub field of Union Michael Davidsaver via Core-talk

Navigate by Date:
Prev: Re: Get sub field of Union Shen, Guobao via Core-talk
Next: Build failed in Jenkins: EPICS-3.14 #256 Jenkins EPICS PSI via Core-talk
Index: 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: Re: Get sub field of Union Michael Davidsaver via Core-talk
Next: Re: Get sub field of Union Marty Kraimer via Core-talk
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  <20192020  2021  2022  2023  2024 
ANJ, 27 Mar 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·