Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

hp3497a repeats itself

Hello,

I'm attempting to get an old HP 3497A working with Labview 6 via GPIB,
using a MeasurementComputing PCI GPIB card and WinXP. In playing with
the HP3497A libraray from NI, I can't get a proper voltage reading back
from the internal digital voltmeter in the 3497. The raw output from
Labview's GPIB read says ++00..112233445566 where it should be
+0.123456. I checked the interactive mode, and an ibrd returns the
voltage reading in hex and ascii, for some reason.

Has anyone experienced this type of problem? The users manual for the
3497 is long-gone, so I was hoping that the Labview stuff would work out
of the box.

thanks,
Adam Maxwell
0 Kudos
Message 1 of 5
(4,011 Views)
Hi Adam,

First thing, check the cabling. Are you using a GPIB cable longer than the specified 4 meters?. The only time I have seen similar behavior was when someone was using a longer cable.

If that is not the case you may need to contact Measuring Computing for trouble shooting options. I'm not familiar with their configuration or diagnostics utilities. It is MC's driver that is performing the communication with the GPIB bus.

Hope this helps.

DiegoF
National Instruments.
0 Kudos
Message 2 of 5
(4,011 Views)
In article <50650000000500000000270100-1042324653000@exchange.ni.com>,
DiegoF wrote:

> First thing, check the cabling. Are you using a GPIB cable longer
> than the specified 4 meters?. The only time I have seen similar
> behavior was when someone was using a longer cable.

No, our cable is about 1 meter, if that. It doesn't have any problem
with QuickBASIC on an older machine, either.
>
> If that is not the case you may need to contact Measuring Computing
> for trouble shooting options. I'm not familiar with their
> configuration or diagnostics utilities. It is MC's driver that is
> performing the communication with the GPIB bus.

We'll have to look into that. Measurement Computing's present version
of their driver isn't recogn
ized by Labview/MAX, so their workaround was
to assign it as a non-Plug and Play device using the NI TNT driver,
IIRC. I was then able to communicate with the instrument via the IBIC
program, but I was having other problems with the 3497a library, so I
wanted to make sure it wasn't in there.

thanks,
Adam Maxwell
0 Kudos
Message 3 of 5
(4,011 Views)
For future reference, in case anyone was following this thread: my
initial problem was with an HP3497A. We just purchased a 34970A from
Agilent to replace this unit, and had the same problems with the GPIB
read/write sample VI in Labview. Write and read worked for talking to
the instrument, but all output was duplicated (250 became 225500). In
further playing with Labview, I switched to 488.2 functions (send and
receive) instead of the older read/write. Now thing work as they should.

My original question still stands, though, as the old 3497A doesn't
speak 488.2.
0 Kudos
Message 4 of 5
(4,011 Views)

I am currently trying to the talk to the HP3497A with a Gpib-USB-HS and VB.NET. I am using the NationalInstruments.NI4882 .net files.

It seems to work but I am getting a beep on the HP3497A everytime I send a write command. I am converting a old computer that has ISA card and using the commands in a old QB file.

We have a new computer with a GPIB-USB-HS connected to it. We are using the same cables and equipment the older computer had connected to it.

Does the NationalInstruments.NI4882 send any extra data with the write command?

Here is my code.

 

 

Imports NationalInstruments.NI4882

 

Module gpib1

 

 Public Sub openGpibData(ByVal b As Integer, ByVal p As Integer, ByVal s As Integer)

Try

Cursor.Current = Cursors.WaitCursor

GpibDeviceData = New Device(CInt(b), CByte(p), CByte(s)) '0,9,0 address

 Catch ex As Exception

MessageBox.Show(ex.Message)

Finally

Cursor.Current = Cursors.Default

End Try

End Sub

 

 Public Sub writeGpibData(ByVal wt As String)

Try

GpibDeviceData.Write(wt)

 Catch ex As Exception

MessageBox.Show(ex.Message)

End Try

End Sub  

 

Public Function readGpibData() As String

Dim gpibdata As String

gpibdata = ""

Try

Cursor.Current = Cursors.WaitCursor

gpibdata = GpibDeviceData.ReadString() 

 Catch ex As Exception

MessageBox.Show(ex.Message)

Finally

Cursor.Current = Cursors.Default

End Try

 Return gpibdata

End Function

  

End Module

 

 

 

0 Kudos
Message 5 of 5
(3,602 Views)