By default Phoebus sets the precision to -1 (to signal from PV) and show units to true. In this case Phoebus will not write these properties to the BOB file and they will not exist. If these properties are missing then Phoebus assumes the above. These properties are only written to the the BOB file when the precision is set to something other than -1 or show units is false. The lib parser needs updating to reflect the case when these properties are missing so that the behaviour resembles that of Phoebus. In addition the format enumerations in Phoebus are different so these need to be parsed separately.
Elements in an array (from a waveform PV) do not respect the precision rules. Logic has been added to format array elements to the specified precision.
This PR addresses 2 points:
-1
(to signalfrom PV
) and show units totrue
. In this case Phoebus will not write these properties to the BOB file and they will not exist. If these properties are missing then Phoebus assumes the above. These properties are only written to the the BOB file when the precision is set to something other than-1
or show units isfalse
. The lib parser needs updating to reflect the case when these properties are missing so that the behaviour resembles that of Phoebus. In addition theformat
enumerations in Phoebus are different so these need to be parsed separately.