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
<2019>
2020
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
<2019>
2020
2021
2022
2023
2024
|