Menu

#28 pvaSrv handling of request for structure element returns whole struct

None
closed
pvaSrv (12)
5
2015-06-10
2014-07-08
Kay Kasemir
No

When starting the pvaSrv belongs to Ralph so I will let him respond.

Ralph here is an example

When using pvaSrv to access iocCore records, a request for an element of the timeStamp structure will return the whole structure:

cd /home/hg/pvDatabaseCPP/exampleDatabase/iocBoot/exampleDatabase
../../bin/linux-x86_64/exampleDatabase st.cmd

pvget -r "field(timeStamp.userTag)" double00
double00
structure
time_t timeStamp
long secondsPastEpoch 631152000
int nanoSeconds 0
int userTag 0

In contrast, a pvDatabase record would only return the requested field:

pvget -r "field(timeStamp.userTag)" exampleDouble
exampleDouble
structure
structure timeStamp
int userTag 0

Discussion

  • Ralph Lange

    Ralph Lange - 2014-10-13

    Ticket moved from /p/epics-pvdata/issues/11/

     
  • Ralph Lange

    Ralph Lange - 2014-10-13
    • labels: --> pvaSrv
    • Group: --> No Milestone
     
  • Ralph Lange

    Ralph Lange - 2015-06-10

    Moved to GitHub (pvaSrv Issue #5)

     
  • Ralph Lange

    Ralph Lange - 2015-06-10
    • status: open --> closed