11-13-2009 01:00 PM
I'm using LabVIEW to control a Keithley 2636A SourceMeter. I connect to the Keithley through ethernet and I'm using VISA commands to communicate with the Keithley. I'm seeing the error code 5038: Index Exceeds Maximum Reading. I'd guess it has to do with reading the buffer: either the buffer overruns or I'm trying to read too many bytes from the buffer? Does anyone know what causes this error and how to avoid it?
Thanks very much,
Tim
11-17-2009 12:28 AM
11-17-2009 09:45 AM
Hi, Tim.
The error 5038 is not a defined error code. If you could post a screenshot of this error message and possibly attach your code, this would be very helpful in solving this issue.
02-02-2010 01:27 PM
This is a screenshot of most of the VI I use for reading the buffer. The buffer reading happens in the lower right corner. The input parameters to printbuffer() are the Start Index (I use the default, 1ms) Timeout (I use the larger of 2s and the number of points x 42 bytes in my measurement) the End Index (I use the number of points in my measurement) and the Byte Count (I use the larger of 1024ms and the number of points x 42 bytes).
02-03-2010 03:38 PM
Hey Tim,
Thanks for the screenshot of the code. I see that you are running the KE24XX example. Have you made any modifications to this example?
Could you send me a spy capture of this event? To do this:
If you could provide the following information:
02-04-2010 05:24 PM
Here is a capture.
1. I am running Windows XP, SP3, 32 bits
2. I'm sorry but I don't know what ADE is
3. The instrument driver info is:
Instrument Driver Technology: LabVIEW Plug and Play (project-style)
Manufacturer: Keithley Instruments, Inc.
Supported Language(s): LabVIEW
Supported Model(s): ..., 2636A
Model(s) Tested: ... 2636A
Interface(s): GPIB, Serial, Ethernet
Firmware Revision(s) Tested: 1.4.1, 2.0.0
Certified: No
Source Code Available: Yes
Driver Revision: 2.1.2
Original Release Date: 09/01/2005
Current Revision Date: 12/03/2008
4. The instrument is a Keithley 2636A
5. The instrument has always had this problem
6& 7 I don't have the capability to test on other instruments and computers, I'm sorry
8. connected by GPIB, but it has had the problem with LAN/ethernet connection as well
Thanks very much for your help.
05-07-2010 02:19 AM
Hello,
I got the same error and found out that I had written nbuffer ("v" was missing after "n") instead of nvbuffer at one script line. Altough I was using a script the principal should be the same, so it might be good idea to check all the buffer names.
Regards,
Boga