Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Agilent N6701 fails ID query

Hi,
Searching from the idnet, I downloaded the LabWindows IVI driver for Agilent N6701 power supply mainframe. Actually it seems that for all 67xx series the same driver is recommended with file name agn6700_MS.msi.
I have both N6700 and N6701. The driver works great with N6700 however when I tried to use it on N6701 I got "ID query failed" error from agn6700_init function.
 
The source code is provided in the package so I browsed to the function.
During ID query it searches for "Agilent Technologies,N6700" in the ID string, which is not the case for a N6701.
 
I can disable the ID query option in the init function to get rid of the error and continue my work, but there is an inconvenience.
If the driver is said to "support" both N6700 and N6701 models then it should really do so.
S. Eren BALCI
IMESTEK
0 Kudos
Message 1 of 4
(4,583 Views)
Hello ebalci,
      When I look at the source code for the IVI driver, I find this:

    /*- Identification Query ------------------------------------------------*/
    if (IDQuery)
    {
        ViChar rdBuffer[BUFFER_SIZE];

        #define VALID_RESPONSE_STRING_START        "Agilent Technologies,N67"

        checkErr( Ivi_GetAttributeViString (vi, VI_NULL, AGN6700_ATTR_ID_QUERY_RESPONSE,
                                            0, BUFFER_SIZE, rdBuffer));

        if (strncmp (rdBuffer, VALID_RESPONSE_STRING_START,
                     strlen(VALID_RESPONSE_STRING_START)) != 0)
            {
            viCheckErr( VI_ERROR_FAIL_ID_QUERY);
            }
    }

Not,
"Agilent Technologies,N6700"

Please make sure that you have the May/07 release of the driver and please double check the ID Query.  Also, are all of the modules that you have in the 6701 supported by the driver?  What happens if you take the modules from the 6700 and only them in the 6701, does the error still occur?

Cheers,

NathanT


Message 2 of 4
(4,571 Views)

Hi Nathan,

I downloaded my copy far before May'07.
I just got the new one. The ID criteria is "...,N67" as you wrote.
But it was definitely "...,N6700" for the old one.

I'll install it on the target machine and let you know if problem persists.
Thanks very much.

S. Eren BALCI
IMESTEK
0 Kudos
Message 3 of 4
(4,561 Views)
Hello Eren,

      I hope that takes care of the issue.

Cheers,

NathanT
0 Kudos
Message 4 of 4
(4,546 Views)