LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

GPIB Query Termination

I am using Agilent DCA 86100A. I am having problem to send a query to it. I am always getting Query Unterminated. the following query is what I am trying to send:

:MEAS:CGR:JITT?PP

I fed the query string to a GPIB write vi and then I read what's returning from the instrumnet by using GPIB read vi?
I tried to put a space before and after the question mark. I tried to change the query string to "/code diplay" and then add /s or /r or /n but non of these seemed to work. Would you please help out on that
0 Kudos
Message 1 of 4
(3,578 Views)
Mohamed,

As I am not an expert on the GPIB commands for an Agilent DCA 86100A (nor do I even know what that is offhand), I can only offer the following advice. I hope it is helpful anyway:

Try looking at the GPIB commands/programming manual that came with the instrument. If you do not have it, there should be an online version on Agilent's website. Also, you can probably download a driver set for this instrument, which should (not guaranteed by any means) contain the proper commands for this instrment. I strongly recommend using the instrument driver if it is available, as this will be the easiest way to solve this and any other problem you have with this instrument, as well as make it MUCH easier for you to program the instrument.
0 Kudos
Message 2 of 4
(3,578 Views)
Mohamed,

Labviewguru is right. You should use the instrument driver for this instrument. It will make your like much easier. There is a LabVIEW driver for it on National Instruments' website. Click here to go to the download page for it. I noticed that it is a contributed instrument driver, so they didn't make it at NI, but it should still work for you. This way, you will not have to worry about what the termination character is yourself. Best of luck.
J.R. Allen
0 Kudos
Message 3 of 4
(3,578 Views)
Mohamed wrote in message news:<506500000008000000DF5A0000-1027480788000@exchange.ni.com>...
> I am using Agilent DCA 86100A. I am having problem to send a query to
> it. I am always getting Query Unterminated. the following query is
> what I am trying to send:
>
> :MEAS:CGR:JITT?PP
>
> I fed the query string to a GPIB write vi and then I read what's
> returning from the instrumnet by using GPIB read vi?
> I tried to put a space before and after the question mark. I tried to
> change the query string to "/code diplay" and then add /s or /r or /n
> but non of these seemed to work. Would you please help out on that

The Plug&Play driver has the command as:
":MEAS:CGR:JITT? PP\n"
That is, a space after the "?" but not before, and the newline after the
PP.
It also puts a small time delay after the read vi -- but that is to get
rid of a parser bug that would give a "Query Interrupted" error if you didn't.

Les Hammer
Les.Hammer@CompleteTest.com
Complete Test
PO Box 6
Loveland, CO 80539
www.CompleteTest.com
0 Kudos
Message 4 of 4
(3,578 Views)