Hi Craig,
I think I have string waveforms working, but I haven't done a lot of
testing with this code (especially for what I may have broken in the
process). If your interested in trying this out and verifying that
this works for you, you can checkout the 'stringarray' branch from
github:
git clone http://[email protected]/newville/pyepics.git
git fetch origin stringarray:stringarray
git checkout stringarray
I'll try to get this better unit-tested and released in a few days,
but I'm trying to get ready for experiments next week too, and am
reluctant to break too many things right now.
Cheers,
--Matt
On Wed, Jan 26, 2011 at 11:08 PM, Matt Newville
<[email protected]> wrote:
> 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]
>>
>>
>>
>>
>>
>>
>
- References:
- Py-Epics and string waveform records Craig.Haskins
- Re: Py-Epics and string waveform records Matt Newville
- Navigate by Date:
- Prev:
Re: bo Record not forcing VAL to 0 or 1 Bruce Hill
- Next:
problem running bash script with MEDM on Windows/Cygwin Jay Steele
- 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
- Navigate by Thread:
- Prev:
Re: Py-Epics and string waveform records Matt Newville
- Next:
OMS VS4 "omsPut: card 0 send ring full!" Nerses Gevorgyan
- 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
|