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: Handling of Array in CaChannel library
From: "Wang Xiaoqiang" <[email protected]>
To: "Ritesh Sugandhi" <[email protected]>, <[email protected]>
Date: Wed, 20 Apr 2011 16:21:15 +0200
 
Hi,
 
Load this into your IOC:
record(waveform, "cawave")
{
    field(DESC, "numeric array")
    field(NELM, "20")
    field(FTVL, "DOUBLE")
}
 
>>> import CaChannel
>>> pv=CaChannel.CaChannel('cawave')
>>> pv.searchw()
>>> pv.getw()
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
>>> pv.putw(range(12))
>>> pv.getw()
[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0]
>>>
 
Xiaoqiang

From: [email protected] [mailto:[email protected]] On Behalf Of Ritesh Sugandhi
Sent: Wednesday, April 20, 2011 3:48 PM
To: [email protected]
Subject: Handling of Array in CaChannel library

Dear Sir,

Could I get an example of how to handle sub array and waveforms records in CaChannel-v1.6 library code.

Best regards,

ritesh Sugandhi



References:
Handling of Array in CaChannel library Ritesh Sugandhi

Navigate by Date:
Prev: Handling of Array in CaChannel library Ritesh Sugandhi
Next: Re: ca.py - Throws error - workaround 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 
Navigate by Thread:
Prev: Handling of Array in CaChannel library Ritesh Sugandhi
Next: gateway aborted by SIGBUS peter.leicester
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 ·