¿ªÔÆÌåÓý

Re: GPIB communications with HP 5334A, HP 5316A Counters


John Miles
 

Hi, Jim --

IMHO, counters of that vintage are best operated in talk-only mode. Set up
the measurement parameters you want to use at the front panel, and just let
them spew the data without being addressed. Addressing them as intelligent
GPIB devices can be a pain in the neck because no two models are exactly
alike.

For that purpose, I've got a freeware Win32 app that (among many other
things) knows how to listen to a talk-only GPIB counter and plot the
resulting phase/frequency data. See
.

TimeLab is actually part of a commercial timing/PN analyzer
work-in-progress, so it will eventually have a nice user guide and more GUI
bells and whistles. Right now it's still a 'beta' with no documentation
other than the help text in the dialog boxes. But it is extremely good at
what it does, and well worth the head-scratching if you are working with
counters or timing analyzers. The source code is included so you can see
how it works and hack it as needed. The code you're looking for is in
drivers\talkonly\talkonly.cpp and drivers\shared\gpibport.cpp .

It needs a Prologix or NI interface for use with legacy GPIB counters, but
should also work with the 82357B adapter as long as you enable NI488.2
support. Check it out and see what you think...

-- john, KE5FX

-----Original Message-----
From: hp_agilent_equipment@...
[mailto:hp_agilent_equipment@...] On Behalf Of jdtckr
Sent: Tuesday, August 23, 2011 11:51 AM
To: hp_agilent_equipment@...
Subject: [hp_agilent_equipment] GPIB communications with HP 5334A, HP
5316A Counters

I have been struggling with harvesting data from the two mentioned meters,
and am hoping that some experience in the group can come to my rescue, or
at least enlightenment.
I am using an Agilent 82357B USB GPIB adaptor, with IOLibSuite 15.5 (or
16.1) under Windows XP Pro (and Windows 7 Pro) to communicate with my
test equipment quite nicely. My problem seems to be that the HP counters
act differently that my other test equipment, and I am trying to
understand
what is happening, and what to do about it.
I can send commands, like IN or RE, and they respond, and I can get data
back from them after a fashion, but *not* the way I get it from other
instruments. When addressed to talk, both counters send out a stream of
readings, until they are made to shut up (presumably by an UNTALK message
of some kind). I am much more used to a device issuing a single reading,
and exerting EOI during the last character, generally a CR or LF, which
these
counters do *not* seem to do. Whatever commands are issued when IOLib
times out will cause them to stop sending. I have also discovered that if
I
artificially induce EOI before the IOLib timeout, I can read all the data
accumulated before the EOI (albeit, the CRs and LFs are presented to me as
"<0d>" and "<0a>", as if they were un-decoded bytes, rather than
whitespace,
as with other instruments.)
First, is this the normal behavior for these counters? Is it possible
that EOI
has been damaged, and just not being exerted on the bus at the proper
time?
How are these devices normally read with IOLib? I know that, at least for
the
5334A, there is a high-speed binary reading mode, which I am *not* using.
Second, is there a way around this behavior? I've read through the
programming sections of both of the manuals, and have not seen any
reference that I consider helpful in this area.
Third, is there a way to get IOLib to retrieve just one reading, and give
it back
to me? For this, I have tried telling IOLib that, for this device (the
82357B), it
should terminate a read on an LF (actually, on a byte = 10, or 0x0A), but
that
does not seem to have any effect. Am I doing it wrong? Do I need to do
something specific to enable it after setting it?
Eventually, I expect to be writing C code to control and read my GPIB
equipment; does anyone have suggestions on where to start? I have `scopes,
counters, DMVs, and generators, and will be characterizing some timing
issues.
TIA,
JimT

Join [email protected] to automatically receive all group messages.