Closed ericonr closed 10 months ago
Confirmed. ad9ba0f085a4229443e08c51fd26e4eb0ad09554 added NTScalar::form
, but ioc/iocsource.cpp
does not yet make use of this.
With b0c7c8fcd0c35e79c00b3eca39486156a380e43a, display.precision
should be set by QSRV2.
And it is, thanks!
Describe the bug
An
ao
value in an IOC database doesn't report its precision correctly (or at all?) when using the PVXS server.To Reproduce Steps to reproduce the behavior:
ao
record withfield(PREC, 3)
caget -d CTRL_DOUBLE
:Precision: 3
display.precision
field exists inpvinfo
outputdisplay.precision
field withpvget
or p4p (for the latter,precision
is reported as 0, even)Care was taken to ensure the access wasn't happening through p4pgw, to eliminate the chance of it causing the issue.
caget -d CTRL_DOUBLE
full output:pvinfo
:pvget -M raw
:pvget -M raw -r display.precision
:p4p
:Expected behavior A clear and concise description of what you expected to happen.
Information (please complete the following):
Alternately, from a successful build, include the output of
pvxinfo -D
.Additional context
This problem was noticed when using a pydm interface with
pva://
, where the spinbox controls worked thanks toDRVH
andDRVL
set in the database, but didn't allow decimal values.