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  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Py-Epics and string waveform records
From: Matt Newville <[email protected]>
To: [email protected]
Cc: [email protected]
Date: Wed, 26 Jan 2011 23:08:03 -0600
Hi Craig,

Sorry for the trouble.

I've never tried a waveform of strings -- I didn't know it was
possible, actually.  I can see that a) it is possible, and b) that the
current pyepics code makes the assumption that a DBR_STRING PV cannot
take more than 40 characters total, regardless of element_count.
That's probably why you're seeing only the first element of the
waveform.

I see a possible fix, and will try to test it tomorrow.

Cheers,

--Matt Newville <newville at cars.uchicago.edu> 630-252-0431

On Wed, Jan 26, 2011 at 9:50 PM,  <[email protected]> wrote:
> Hi,
>
> Does anyone know if Py-Epics should be able to correctly read/write string waveform records?  I only seem to be able to access  the first element.
>
> using caget (C utility) from base is OK, it returns all elements
>
>>caget  stringWaveform
> has09eenv:weather:area1:test 5 testing one two three four
>
> but using Py-Epics I only see the first although the count is correct
>
> In [12]: pv=epics.PV('stringWaveform')
>
> In [13]: pv.get()
> Out[13]: 'testing'
>
> In [14]: pv.count
> Out[14]: 5
>
> float waveform records are fine though.
>
> Thanks
> -------------------------------------------------------
> Craig Haskins
> Software Engineer
> Australia Telescope National Facility
> CSIRO Astronomy and Space Science
> P.O.Box 76, Epping NSW 1710, Australia
> Phone: +61 2 9372 4309
> email: [email protected]
>
>
>
>
>
>


Replies:
Re: Py-Epics and string waveform records Matt Newville
References:
Py-Epics and string waveform records Craig.Haskins

Navigate by Date:
Prev: Py-Epics and string waveform records Craig.Haskins
Next: RE: GigE driver for Area Detector tom.cobb
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Py-Epics and string waveform records Craig.Haskins
Next: Re: Py-Epics and string waveform records Matt Newville
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  <20112012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·