Experimental Physics and
| |||||||||||||||
|
Hi all,
I'm sorry, but I discovered that the problem was in the IOC database, not in MEDEM conversion functions.
Thanks to all anyway, and, again, sorry.
Luca
On Tue, 2016-11-29 at 09:06 +0100, Luca Cavalli wrote:
Hi all, I'm testing the sexagesimal number format in MEDEM, but I'm experiencing a strange behaviour. I have defined an ao PV named AAA with and MEDEM Text Entry with sexagesimal number format. In a terminal window I'm monitoring the AAA PV with camonitor. As soon as I set in MEDEM the sexagesimal value 12:34:56.789 the PV assumes the correct value, but immediately the value changes to something approximated. This is the camonitor output: $ camonitor -f16 AAA AAA 2016-11-28 17:24:05.143777 0.0000000000000000 AAA 2016-11-28 17:24:18.312258 12.5824413888888884 AAA 2016-11-28 17:24:18.312329 12.5824409999999993 As soon as the PV gets it last value, the MEDEM Text Entry modifies it content to 12:34:56.787599999997. It seems that MEDEM applies some correction to the read-back value during conversion back to sexagesimal format (and looking MEDEM source code indeed this is the case, but only to avoid string manipulation due to reminders, this modified value is discarded after sexagesimal string conversion). I'm testing converted values also with this online converter: http://www.astrosurf.com/astronosur/conversion.htm I'm asking this because I'm porting this feature to CSS (CSS team, a patch will follow soon :) and I'm having the very same behavior also with CSS. Thanks, Luca
| ||||||||||||||
ANJ, 29 Nov 2016 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |