Hi Core member,
Does anyone have experienced to read sub field of a Union structure?
For example, I have a record:
$ pvinfo Test:Data
…
structure
uint ArrayId
double[] Time
union value
float[] data1
double[] data2
If I use
$ pvget -r value Test:Data
Test:Data
structure
union value
float[] [-0.034794,-0.0417011, …]
But if I do it with:
$ pvget -r value.data1 Test:Data
I got an error on my client like
[Test: Data] failed to create channel get: Status [type=FATAL, message=std::bad_alloc]
Is that a right way to use it for union?
Thanks,
Guobao