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  2019  2020  2021  <20222023  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  <20222023  2024 
<== Date ==> <== Thread ==>

Subject: Re: phoebus: write waveform PV
From: Gabriel Fedel via Tech-talk <tech-talk at aps.anl.gov>
To: <tech-talk at aps.anl.gov>
Date: Mon, 11 Apr 2022 14:03:00 +0200
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


--
Gabriel Fedel
Control System Engineer / Integrated Control System Division

European Spallation Source ERIC
P.O. Box 176, SE-221 00 Lund, Sweden
Visiting address: Partikelgatan 2, 224 84 Lund
Mobile: +46 72 179 23 01
E-mail: gabriel.fedel at ess.eu
ess.eu

Replies:
Re: phoebus: write waveform PV William Kirstaedter via Tech-talk
References:
phoebus: write waveform PV William Kirstaedter via Tech-talk

Navigate by Date:
Prev: phoebus: write waveform PV William Kirstaedter via Tech-talk
Next: EPICS areaDetector plugin & phoebus Jörn Dreyer 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  2019  2020  2021  <20222023  2024 
Navigate by Thread:
Prev: phoebus: write waveform PV William Kirstaedter via Tech-talk
Next: Re: phoebus: write waveform PV William Kirstaedter 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  2019  2020  2021  <20222023  2024 
ANJ, 14 Sep 2022 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·