epics-base / pvaPy

pvaPy provides Python bindings for EPICS pvAccess
https://epics.anl.gov/extensions/pvaPy/production/index.html
Other
36 stars 22 forks source link

Error when requesting multiple fields from the same struct #76

Closed echandler-anl closed 2 years ago

echandler-anl commented 2 years ago

I'm getting an error when trying to request fields from the same struct. Here is the pv structure:

   structure
        structure obj1
            float[] x
            float[] y
        structure obj2
            float[] x
            float[] y

When I get the PV with the request descriptor 'obj1.x,obj2.y' I get the following error:

ERROR Channel:  channel Ch1 PvaClientChannel::createMonitor invalid pvRequest: Can't construct Structure, duplicate fieldName obj1
echandler-anl commented 2 years ago

Judging by this epics-base unit test, this behavior is by design. The request string for getting multiple fields from the same object is 'obj1{x,y}'. Closing issue.