11-23-2009 08:46 AM
Using the Ag33220 driver from NI dated 9/22/2008 I get an error -410 "Query Interrupted" when I do the following:
iDriverResults = Ag33220_init(caAddress, FALSE, FALSE, &gul33220A);
iLocalFail = ErrorHandler_33220A(iDriverResults); /* check for error */
iDriverResults = Ag33220_SystemWrite(gul33220A, "*IDN?");
iLocalFail = ErrorHandler_33220A(iDriverResults); /* check for error */
The same error occurss doing the following:
iDriverResults = Ag33220_init(caAddress, FALSE, TRUE, gul33220A);
iLocalFail = ErrorHandler_33220A(iDriverResults); /* check for error */
However, using the low level GPIB commands
gul33220A = ibdev(0, 10, NO_SAD, T10s, 1, 0); /* find */
iStatus = ibwrt(10, "*IDN?", 5); /*write command */
iStatus = ibrd(10, caData, iByteCount); /* read data */
I do not get an error and the instrument responsed back to the query with the correct data. MAX also is able to find and query the instrument.
I get this error on multiple computers.
11-24-2009 12:58 AM - edited 11-24-2009 01:00 AM
Hi Paul,
Do you see the error on the device front panel or as a return from your error handler, or both?
This error means you are asking for information from the device while there is data unread on the device output buffer.
The ibdev function may be initializing the device output buffer so it is clean already as you ask for ID.
Could you do a fully clean trial?
I mean, turn off and on the device, then do the library function calls before any other communication with the instrument.
It should work correctly in that case.
Do you have anohter Agilent 33220? Maybe the one you are working with has some problems.
You can also connect a GPIB bus monitor to see if the driver calls are doing any extra queries to the instrument without reading the results.
Sometimes the driver source code is available. Is this true in your case?
If yes, examine it and see if you can find the problem. Maybe you can fix it by yourself.
Hope this helps,
11-24-2009 08:09 AM
Eren,
I get the same error on multiple computers with multiple 33220s. Turning the instrument off and on does not fix the problem.
The error is returned by the Ag33220_init function in the variable iDriverResults, which is a National Instrument function that I do not have access to the source code.
I was able to download a driver from Agilent and rewrite my code to use that driver. The driver just worked first time out of the box.
Paul
11-24-2009 06:09 PM
Hi, Paul.
Are you using the Agilent 33220A instrument driver? National Instruments does not seem to have a supported driver for the 33220. Could you possibly direct me to where you had downloaded this instrument driver?
11-25-2009 12:05 AM
What is the exact value of caAddress ? Could you show us a logfile from NI SPY ?
11-25-2009 08:04 AM
Here is the driver information.
Driver Identification:
---------------------
Driver Revision: 6.1.1
Driver Vendor: National Instruments
Prefix: hp33120a
Description: Function/Arbitrary Waveform Generator
Driver Release Information:
--------------------------
Original Release Date: 03/16/1998
Update Release Date: 08/25/2009
Hardware Information:
--------------------
Instrument Manufacturer: Hewlett-Packard; Agilent Technologies
Supported Instrument Models: 33120A, 33210A, 33220A, 33250A, E1441A
Supported Bus Interfaces: GPIB, Serial, VXI
Software Information:
--------------------
Support Software Required: IVI Compliance Package 3.1, NI VISA 4.1
Source Code Availability: Available
The value of caAddress = 10.
I can't show a NI SPY logfile since I have re-written my code to work with the Agilent driver.