Re: Length of read in in python-gpib

2005-10-16 Thread Dietmar Schwertberger
In article [EMAIL PROTECTED], Madhusudan Singh URL:mailto:[EMAIL PROTECTED] wrote: python-gpib provides Gpib.py (see end of post) for Linux. I am trying to use the method called read. I usually use it without arguments (the default length being 512). However, I am trying to read in a string

Length of read in in python-gpib

2005-10-15 Thread Madhusudan Singh
python-gpib provides Gpib.py (see end of post) for Linux. I am trying to use the method called read. I usually use it without arguments (the default length being 512). However, I am trying to read in a string with some 16,000 comma separated floating point numbers. So, I have to pass a length

Re: Length of read in in python-gpib

2005-10-15 Thread Madhusudan Singh
Further, if I use 131072 (2^17) as the length, I get an error : Traceback (most recent call last): File takedata.py, line 74, in ? x=sr.querytrca(srs,1,0,4000,131072) File /home/labmonkey/code/oledpmt/sr830.py, line 62, in querytrca trca=sr.read(n) File