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 2025 | 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 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: phoebus: write waveform PV |
From: | William Kirstaedter via Tech-talk <tech-talk at aps.anl.gov> |
To: | Gabriel Fedel <gabriel.fedel at ess.eu>, tech-talk at aps.anl.gov |
Date: | Mon, 11 Apr 2022 15:50:35 +0200 |
... works.
thanks alot!
![]() |
|
William Kirstaedter (PP&B) | Fritz-Haber-Institut der MPG |
Faradayweg 4-6 | 14195 Berlin |
Tel: 030 8413 5405 | Mail: kirstaedter at fhi-berlin.mpg.de |
Hi William,
the way I normally do this is using the array from jarray:
```
from jarray import array
pvs[0].setValue(array(yourlist, 'd'))
```
On the example, your list would be the variable yourlist.
Cheers
On 4/11/22 13:57, William Kirstaedter via Tech-talk wrote:
Hi,
I have a short question:
I have a small embedded python script that generates a waveform of 4096 points from a user-given formula. (i.e. sin(t))
I want to write that waveform data to the corresponding PV.
But phoebus / Jython complains about not being able to write a pyList Datatype ...
Caused by: java.lang.Exception: Cannot handle type org.python.core.PyList
How can I convert my python list object to a DoubleArray?
I tried to import VDoubleArray but its abstract ...
Thanks,
--
William Kirstaedter (PP&B) Fritz-Haber-Institut der MPG
Faradayweg 4-6 14195 Berlin
Tel: 030 8413 5405 Mail: kirstaedter at fhi-berlin.mpg.de
Attachment:
smime.p7s
Description: S/MIME Cryptographic Signature