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: 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
Am 11.04.2022 um 14:03 schrieb Gabriel Fedel via Tech-talk:
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


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

Navigate by Date:
Prev: Re: EPICS areaDetector plugin & phoebus Mark Rivers via Tech-talk
Next: RE: EPICS areaDetector plugin & phoebus Pearson, Matthew 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: Re: phoebus: write waveform PV Gabriel Fedel 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 
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 ·