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 | 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 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Handling of String Array in CaChannel library |
From: | Ritesh Sugandhi <[email protected]> |
To: | Wang Xiaoqiang <[email protected]> |
Cc: | [email protected] |
Date: | Thu, 21 Apr 2011 17:25:40 +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 libraryDear 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