Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Has anyone had troubles with VISA(GPIB) control and using USB?

171 views
Skip to first unread message

ljark

unread,
Jun 25, 2001, 9:30:50 AM6/25/01
to
I am having trouble controlling a GPIB machine using VISA controls. I
am using a USB GPIB cable and the software. But I get errors when I
try to use the Intstrument drivers (ex HP4194A) VISA control. If I
change to GPIB commands it works fine. Am I calling the unit wrong?
Not sure how to get it to work.

Gorka Larrea

unread,
Jun 25, 2001, 10:39:43 AM6/25/01
to
After ensuring the device is correctly installed, you should start
checking your device with easy visa write and read vi, sending a *idn?
to your instrument, being sure the direction fits, for example
GPIB::1::INSTR, then, if your device answers, go from there.
Hope this helps

Rob Cole

unread,
Jun 25, 2001, 1:06:40 PM6/25/01
to
If you are not using an NI GPIB card, you have to use the "universal"
naming convention: "GPIB::#". Where the "#" is the insturment number.
This is the same as using "GPIB0::#". The zero just tells the program
to use the first GPIB card (in case you have more than 1 GPIB card).
The lab here uses a mixture of HP, NI and ComputerBoards cards and
using this naming convention, it doesn't matter what machine the
program runs on.

Gorka Larrea

unread,
Jun 25, 2001, 2:29:30 PM6/25/01
to
The problem is that you don't open the VISA session, at least in
LabVIEW 5.0, and don't think this has changed, you must open the
session first, then write to it. You should use GPIB::1::INSTR as the
name (supposing the address of the device as 1) and try with *IDN?
command.
Hope this helps

ljark

unread,
Jun 25, 2001, 2:18:43 PM6/25/01
to
I am using an NI USB-GPIB controller. Could you send me an example of
a visa program that works? Just a simple read. Is there something I
am not initializing? Because I have tried aliases, GPIB0::6::INSTR,
GPIB0::6, Visa Class set to INSTR and GPIB INSTR. Any idea what the
error code means? -1073807194

ljark

unread,
Jun 25, 2001, 2:50:20 PM6/25/01
to
Tried that. From what I read you don't need to open it in 6i. I
can't even find a Visa Open command. In NI SPY I get an error at
viopen status 0xBFFF00A6

Gorka Larrea

unread,
Jun 25, 2001, 5:23:35 PM6/25/01
to
The last sollution that comes to me is reinstalling NI-VISA, or even
LabVIEW.
Good luck

rtamblin

unread,
Jun 26, 2001, 12:06:40 PM6/26/01
to
There is a Knowlege Base on ni.com that addresses this problem that
should be helpful to you. The ID for the KB is 25MFQ600, and the link
is:

http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/862567530005f09f862569dd007da5f0?OpenDocument

I hope this resolves your problem.

Ryan Tamblin
Applications Engineer
National Instruments

0 new messages