1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 <2019> 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: [EXTERNAL] CSS jython setvalue behaviour |
From: | "Kasemir, Kay via Tech-talk" <[email protected]> |
To: | "[email protected]" <[email protected]>, Pilar <[email protected]> |
Date: | Wed, 11 Sep 2019 17:01:54 +0000 |
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__)
print(value)
pvs[0].setValue( value )
.. or so:
value = Double.valueof(-2147483648 )
print(value.__class__.__name__)
print(value)
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
|