EPICS Controls 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  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  <20192020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: [EXTERNAL] CSS jython setvalue behaviour
From: Pilar Gil via Tech-talk <[email protected]>
To: "Kasemir, Kay" <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thu, 12 Sep 2019 16:36:57 +0200
Exactly! That works!!

Thank you very much!
Pilar

El jue., 12 sept. 2019 a las 16:25, Kasemir, Kay (<[email protected]>) escribió:
> I get following exception:
 java.lang.Exception: java.lang.Exception: Cannot handle type java.math.BigInteger

Looks like Jython autoconverts the large number into a Java BigInteger, which the PV doesn't handle.
Try to pass the number as a Long or Double instead of BigInteger:

from java.lang import Long, Double

value =  .. your original value ..

# Turn into Long or Double
#value = Long.valueOf(value)
value = Double.valueOf(value)

-Kay


--
http://sevensols.com
Pilar Gil Jaldo

Embedded SW Engineer

This e-mail and any materials attached hereto, including, without limitation, all content hereof and thereof are confidential and proprietary to Seven Solutions,S.L and/or its affiliates, and are *confidential*. Without the prior written consent of Seven Solutions, this content may not (i) be disclosed to any third party, (ii) be reproduced, modified or otherwise used by anyone other than current employees of Seven Solutions or its affiliates. If you are not the intended recipient or if this message has been received in error, please immediately notify us via e-mail and delete it.

 This e-mail and any materials attached hereto, including, without limitation, all content hereof and thereof are confidential and proprietary to Seven Solutions,S.L and/or its affiliates, and are *confidential*. Without the prior written consent of Seven Solutions, this content may not (i) be disclosed to any third party, (ii) be reproduced, modified or otherwise used by anyone other than current employees of Seven Solutions or its affiliates. If you are not the intended recipient or if this message has been received in error, please notify us immediately via e-mail and delete it.
References:
CSS jython setvalue behaviour Pilar via Tech-talk
Re: [EXTERNAL] CSS jython setvalue behaviour Kasemir, Kay via Tech-talk
Re: [EXTERNAL] CSS jython setvalue behaviour Pilar Gil via Tech-talk
Re: [EXTERNAL] CSS jython setvalue behaviour Kasemir, Kay via Tech-talk
Re: [EXTERNAL] CSS jython setvalue behaviour Pilar Gil via Tech-talk
Re: [EXTERNAL] CSS jython setvalue behaviour Kasemir, Kay via Tech-talk
Re: [EXTERNAL] CSS jython setvalue behaviour Pilar via Tech-talk
Re: [EXTERNAL] CSS jython setvalue behaviour Kasemir, Kay via Tech-talk
Re: [EXTERNAL] CSS jython setvalue behaviour Pilar Gil via Tech-talk
Re: [EXTERNAL] CSS jython setvalue behaviour Kasemir, Kay via Tech-talk

Navigate by Date:
Prev: Re: [EXTERNAL] CSS jython setvalue behaviour Kasemir, Kay via Tech-talk
Next: Problems compiling base-3.15.6 with RTEMS Michael Westfall 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  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: [EXTERNAL] CSS jython setvalue behaviour Kasemir, Kay via Tech-talk
Next: lcaGet maximum readout array size Ha, Kiman 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  2021  2022  2023  2024 
ANJ, 13 Sep 2019 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·