I'd check what type the script is actually trying to pass down, see what you put it, and if that's already truncated, or if the problem starts inside setValue.
value = -2147483648
print(value.__class__.__name__)
print(value)
pvs[0].setValue( value )
Then try passing different types like so:
from java.lang import Long, Double
value = Long.valueof(-2147483648 )
print(value.__class__.__name__)
pvs[0].setValue( value )
.. or so:
value = Double.valueof(-2147483648 )
print(value.__class__.__name__)
pvs[0].setValue( value )
Other question is the native type of your PV:
print(pvs[0].getValue().__class__.__name__)
Knowing the PV type and the actual data type passed in it'd be easier to figure out how the value is handled.
-Kay
|