LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

gpib query

Anyone know how to do a query to a gpib device?

Im using a write, timer, read, but that doesnt
seem to work.


enliteneer@mindless.com


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 7
(6,620 Views)
enliteneer@mindless.com wrote:

> Anyone know how to do a query to a gpib device?
>
> Im using a write, timer, read, but that doesnt
> seem to work.
>
> enliteneer@mindless.com
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.

I am not sure what you are trying to query. The answer is most likely
to be found in the manual for the gpib device. That said I will add that
most
gpib devices follow a command/query format. That is the query form of the
command
is to append a question mark "?". So SETDCV 30 is a command and SETDCV? is
the
query.
Hope this is what you are asking.
Kevin Kent
0 Kudos
Message 2 of 7
(6,620 Views)
enliteneer@mindless.com wrote in message <7o787k$prr$1@nnrp1.deja.com>...
>Anyone know how to do a query to a gpib device?
>
>Im using a write, timer, read, but that doesnt
>seem to work.
>
>
>enliteneer@mindless.com
>
>
>Sent via Deja.com http://www.deja.com/
>Share what you know. Learn what you don't.

A liitle more information would be nice. What OS are you running? What kind
of instrument? Are you using VISA, GPIB, or GPIB 488.2 calls? What version
of LabVIEW?
When I have to bring up a new GPIB device, I start with the Measurement &
Automation Explorer. If you don't have this then you should get the latest
GPIB driver from National's web site. This program will search for devices
and allow you to communicate to the device. I usually start out with a
simple
command like IDN?. If all this works, I then go Easy VISA Write &
Read.vi (under Instrument I/O>VISA palette). Most (if not all) instruments
are very particular about the correct syntax of a command. They may not
respond at all until the error condition is cleared. I would also recomend
you look at existing drivers for similar insturments and for instruments
from the same manufacturer. Because many manufacturers follow such standards
as SCPI, you'll find a high degree of commonality wiith some of the more
basic commands.

Good Luck
Dennis Knutson
0 Kudos
Message 3 of 7
(6,620 Views)
Im using W98 with a N.I. GPIB board thats communicating to
a Hp1672d (Logic Anaylzer).

According to HP manual, it expects a termination character (Linefeed)
after every "query".

But good news is, I found the problem, and perhaps, one of you
guys knew about this, apparently, Labview has a problem with
GPIB file transfers of over 900K.

So, I broke up the 12M data into 800k blocks and everything worked!

Thanks,
Eric

In article <37a856ac.0@206.168.123.253>,
"Dennis Knutson" wrote:
> enliteneer@mindless.com wrote in message
<7o787k$prr$1@nnrp1.deja.com>...
> >Anyone know how to do a query to a gpib device?
> >
> >Im using a write, timer, read, but that doesnt
> >seem to work.
> >
> >
> >enliteneer@mindless.com
> >
> >
> >Se
nt via Deja.com http://www.deja.com/
> >Share what you know. Learn what you don't.
>
> A liitle more information would be nice. What OS are you running? What
kind
> of instrument? Are you using VISA, GPIB, or GPIB 488.2 calls? What
version
> of LabVIEW?
> When I have to bring up a new GPIB device, I start with the
Measurement &
> Automation Explorer. If you don't have this then you should get the
latest
> GPIB driver from National's web site. This program will search for
devices
> and allow you to communicate to the device. I usually start out with a
> simple command like IDN?. If all this works, I then go Easy VISA Write
&
> Read.vi (under Instrument I/O>VISA palette). Most (if not all)
instruments
> are very particular about the correct syntax of a command. They may
not
> respond at all until the error condition is cleared. I would also
recomend
> you look at existing drivers for similar insturments and for
instruments
> from the same manufacturer. Because many manufacturers follow s
uch
standards
> as SCPI, you'll find a high degree of commonality wiith some of the
more
> basic commands.
>
> Good Luck
> Dennis Knutson
>
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
Message 4 of 7
(6,618 Views)
Has anybody else run into this? I'm running a test right now where I'm
transferring buffers up to 2.5Meg using the "Traditional" and 488.2 GPIB
functions in LabVIEW under Windows 98, and I'm having no problems. What
version of the GPIB driver are you using? Does the instrument transfer the
data in an unusual way?


Brian Powell
LabVIEW R&D


wrote in message
news:7o9tni$n4m$1@nnrp1.deja.com...
> Im using W98 with a N.I. GPIB board thats communicating to a Hp1672d
(Logic Anaylzer).

> Apparently, Labview has a problem with GPIB file transfers of over 900K.
> So, I broke up the 12M data into 800k blocks and everything worked!
0 Kudos
Message 7 of 7
(6,611 Views)
On Wed, 4 Aug 1999 09:07:01 -0600, "Dennis Knutson"
wrote:

>enliteneer@mindless.com wrote in message <7o787k$prr$1@nnrp1.deja.com>...
>>Anyone know how to do a query to a gpib device?
>>
>>Im using a write, timer, read, but that doesnt
>>seem to work.
>>
>>
>>enliteneer@mindless.com
>>
>>
>>Sent via Deja.com http://www.deja.com/
>>Share what you know. Learn what you don't.
>
>A liitle more information would be nice. What OS are you running? What kind
>of instrument? Are you using VISA, GPIB, or GPIB 488.2 calls? What version
>of LabVIEW?

What is the (technical) difference between a VISA or a GPIB 488.2 call
within Labview??
Does it require different queries? In our manuals (from HP) sample
program's use HP basic, Quickbasi
c and turbo C programming languages.
Is it always preferable to look at / use the (turbo) C examples
queries?
I'm using Windows NT 4.0 sp3 or Win 95 with Labview 5.0.

>are very particular about the correct syntax of a command. They may not
>respond at all until the error condition is cleared.
Are there some special attentions/ differences between VISA or GPIB
488.2 for clearing devices??

Greetings,

Bastiaan Knarren


____________________________
Eindhoven University of technology
Precision engineering section
ir. B.A.W.H. Knarren
Wh 2.107
Postbus 513
5600 MB Eindhoven (NL)

Phone: 040 - 247 5369
Fax: 040 - 246 5330
E-mail: B.A.W.H.Knarren@tue.nl
internet: http://pe.wtb.tue.nl/
Office: Wh 1.105
0 Kudos
Message 5 of 7
(6,616 Views)
b.a.w.h.Knarren@tue.nl wrote:

> What is the (technical) difference between a VISA or a GPIB 488.2 call
> within Labview??
> Does it require different queries? In our manuals (from HP) sample
> program's use HP basic, Quickbasic and turbo C programming languages.
> Is it always preferable to look at / use the (turbo) C examples
> queries?
>
> Are there some special attentions/ differences between VISA or GPIB
> 488.2 for clearing devices??
>
>

VISA is actually an API that sits on top of GPIB 488.2 (and the serial and VXI
drivers)
The commands for a GPIB device are the same if you use the VISA or the GPIB
VIs.

There are some differences in implmentation:
GPIB:
Address device, read from it
Address device, write to it , etc etc etc.
VISA:
Address devic
e using open session (get a session tag)
read and write to the session using the session tag
etc etc etc.
Close the session when no longer needed.

Most everything else is the same.
VISA has a CLR command. I seldom use it since it sends
the GPIB 488.2 clear command, I have several devices that
are not 488.2 compliant so I ususlly make a VI to send the clear command it
expects.

I hope this is what you are asking for. If not try again.
Kevin
0 Kudos
Message 6 of 7
(6,611 Views)