Argonne National Laboratory

Experimental Physics and
Industrial Control System

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  <20192020  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  <20192020 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] CSS jython setvalue behaviour
From: "Kasemir, Kay via Tech-talk" <tech-talk@aps.anl.gov>
To: "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>, Pilar <pilar.gil@sevensols.com>
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


Replies:
Re: [EXTERNAL] CSS jython setvalue behaviour Pilar Gil via Tech-talk
References:
CSS jython setvalue behaviour Pilar via Tech-talk

Navigate by Date:
Prev: CSS jython setvalue behaviour Pilar via Tech-talk
Next: Re: pvGet in Sequence does not work with incorrect size Benjamin Franksen via Tech-talk
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  <20192020 
Navigate by Thread:
Prev: CSS jython setvalue behaviour Pilar via Tech-talk
Next: Re: [EXTERNAL] CSS jython setvalue behaviour Pilar Gil via Tech-talk
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  <20192020 
ANJ, 12 Sep 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·