--- Begin Message ---
Thanks to replies received from this group, the bizarre MEDM problem has
been fixed. As some of you suspected it was in the get_precision
routine of the High Voltage record code itself. It was solved by
one line, and it makes perfect sense. The actual code is shown below:
static long get_precision(paddr,precision)
struct dbAddr *paddr;
long *precision;
{
--------------------------------------------------------------------
The following line was added by Johnny Tang. Previously, it was
calling the routine with an uninitialized value for precision.
Results were, to say the least, unpredictable.
*precision=0;
--------------------------------------------------------------------
recGblGetPrec(paddr,precision);
return(0);
}
--
Bonnie Madre
Staff Computer Scientist
Accelerator Controls Software Group
ANALOG ADDRESS:
Thomas Jefferson National Accelerator Facility (TJNAF)
MS 85A
12000 Jefferson Avenue
Newport News, VA 23606
(757) 269-7059
E-MAIL ADDRESS:
[email protected]
--- End Message ---