Experimental Physics and Industrial Control System
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
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
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
- 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
<2011>
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025