Experimental Physics and
| |||||||||||||||||
|
I am running a code on 64 bit machine using pyepics library version 3.1.1 and python 3.2. I am putting 64k elements character array and reading it back. the output gives following error :
The EPICS_CA_MAX_ARRAY_BYTES is assigned to 65536. Output:: ======= Traceback (most recent call last): File "dev/pydev/pyepics-v3.1-demo-waveform-char-2k.py", line 12, in <module> main() File "dev/pydev/pyepics-v3.1-demo-waveform-char-2k.py", line 7, in main pv.put(newval,wait=True) File "/home/ITER/sugandr/Python-2.6.6/lib/python2.6/site-packages/epics/pv.py", line 216, in put callback_data=callback_data) File "/home/ITER/sugandr/Python-2.6.6/lib/python2.6/site-packages/epics/ca.py", line 360, in wrapper return fcn(*args, **kwds) File "/home/ITER/sugandr/Python-2.6.6/lib/python2.6/site-packages/epics/ca.py", line 935, in put PySEVCHK('put', ret) File "/home/ITER/sugandr/Python-2.6.6/lib/python2.6/site-packages/epics/ca.py", line 372, in PySEVCHK raise CASeverityException(func_name, message(status)) epics.ca.CASeverityException: put returned 'Invalid element count requested'The code is given below: =================== from epics import * def main(): pv = PV('Py:char64k') newval=[]
#65 is unicode for 'a' for i in range(65536): newval.append(65) pv.put(newval,wait=True) print('total values are',pv.count) print('value representation:',pv.get())
print('total values are',pv.count) print('string representation',pv.get(as_string=True)) main() While the same code with 2048 elements gives the proper output.
Thanks and Best regards, Ritesh Sugandhi
| ||||||||||||||||
ANJ, 18 Nov 2013 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |