I have a Agilent N6700B power supply. I use the following function to init it:
rtn = agn6700_InitWithOptions ("GPIB::5::INSTR", /* resourceName */
VI_TRUE, /* IdQuery */
VI_TRUE, /* resetDevice */
"Simulate=0,RangeCheck=1,QueryInstrStatus=0,Cache=1,DriverSetup=Module1:N6762A;Module2:N6752A;Module3:N6742A;Module4:N6745A",
&gAgn6700);
The return value is ok (=0), and I can do other initialization and set the desired voltage level, etc. BUT, right after this function call, I checked the front panel of the power supply. It showed some errors, like
"GPIB: Error, -222 Data out of range"
If I call this function in the following way:
rtn = agn6700_InitWithOptions (GPIB_DEV_ADDR_N6700, /* resourceName */
VI_TRUE, /* IdQuery */
VI_TRUE, /* resetDevice */
"Simulate=0,RangeCheck=1,QueryInstrStatus=1,Cache=1",
&gAgn6700);
I got no errors on the front panel, but the return value is 0xBFFA0020.
Pls somebody explain this to me. Thanks a lot.
Jason