Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

query status error N6700B

I've written a VI(state machine) that provides control of an Agilent N6700B mainframe power supply with an N6762A and two N6733Bs installed. I'm using the agn6700 driver from the Instrument Driver Network and everything else works fine. The only problem I'm having at the moment is when I try to run the status query state for say, Constant Voltage, it will never indicate that it's in that state. I get no errors, the Query Output State VI runs but it seems that no matter what's read back from the instrument by the VISA Read, it never matches up with the shifted bit from the constant array. I've attached a screenie to clarify things. I'm not entirely sure what the reasoning behind the values in the array is, the SCPI programming reference on the Status Byte Register isn't very helpful (or I'm just missing something).
Anyone have any ideas?
0 Kudos
Message 1 of 4
(4,414 Views)
Hello LabVIEWn00b,
    Have you had a chance to look at the context help for the Query Output State VI?  Here is a snippet from the context help regarding constant voltage:

"A constant voltage condition occurs when the output voltage is equal to the value of the agn6700>>Basic Operation>>Voltage Level property and the current is less than or equal to the value of the agn6700>>Basic Operation>>Current Limit property."

I think that the values in the array correspond to the different values of the status register.  For more information on that, I recommend that you reference the user's manual and programming manual for your instrument.

After perusing both the context help for the VI and the manuals, please let us know if you are still having problems.

Cheers,

NathanT
0 Kudos
Message 2 of 4
(4,386 Views)
Yes, I've looked at all of those and the supply is indeed in a constant voltage state when queried. The extent of the programmer's reference help is basically to tell me that 'some bits in the Status Byte Register are set', not which ones or why.
I'll be looking into it later today, time permitting. Thanks for trying...
0 Kudos
Message 3 of 4
(4,384 Views)
Hello LVn00b,

     I also looked through the users manual and could not find any information about the operation condition register or the questionable condition register.

BUT

     When I searched for those terms in the Programmer's Reference Help, I found the explanation of what each bit means.  Please let us know what register value the instrument is returning and maybe we can find out if the code is parsing it incorrectly.

Cheers,

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