02-09-2006 05:10 PM
Hi,
I'm having problems with Labview 8, VISA and GPIB-USB-B interface.
I'm trying to use VISA
I'm doing the following:
1) communicate with instrument A without problems.
2) Unplug GPIB-USB from PC.
3) connect GPIB interface to instrument B.
4) Plug GPIB-USB into PC
5) test instrument B communication in MAX without problems
6) I note that instrument A still shows in the drop-down list of the
"VISA resource name" control of the Labview VI even after
I refresh MAX and click "Refresh" entry in the "VISA resource name"
7) when I run the VI VISA resource name that corresponds to instrument
B, I would get a VISA error "VISA: (Hex 0xBFFF00A6) The connection for the given session has been lost."
I have the latest drivers and windows XP pro updates
Also, when I unplug and plug back USB interface into the PC,
it runs windows new hardware wizard every time.
I find that annoying.
Fedor
02-09-2006 05:40 PM
02-09-2006 05:57 PM
Dennis,
Thanks for your reply.
I am working on a portable, hot pluggable solution, that's why I'm testing my program
while connecting and disconnecting different instruments. I am pulling the USB
plug to power GPIB bus down as GPIB require to power
down the devices before connecting/disconnecting GPIB cable.
I would like to rephrase my question:
What is the correct protocol for handling
old/new/expired VISA connections in Labview 8?
I could not find the answer by using search or
looking up examples.
Fedor.
04-21-2006 03:25 PM
04-21-2006 05:03 PM
DGU,
No, I have not found a solution. I gave up on trying to use VISA and switched to old-style GPIB VIs.
Fedor.
04-23-2006 02:29 PM
And because the old style gpib is built upon the visa layer it should have the same problems at least from labview 7.1
The usb unplug and replug is not a very nice test, but could work.
Will the next test be to unplug the power of the pc or the instrument? I guarantee a non working system after that.
greetings from a second nice day in the Netherlands
04-24-2006 11:02 AM
@Albert Geven wrote:
And because the old style gpib is built upon the visa layer it should have the same problems at least from labview 7.1
04-24-2006 01:19 PM
04-24-2006 01:52 PM
04-24-2006 03:12 PM
Hi Jason
thanks for reminding me.
The reason I like (love/hate) VISA is the ability to write instrumentdrivers and don't worry too much about the bus/interface but concentrate at the commands.
The way VISA hides the interface and let me concentrate on the message makes it also possible to reuse most (95%) of the driver when adding an interface.
Especially the new instruments that come out with usb and gpib and ethernet are perfect to control with visa.
Except for a few quircks now and then but that happened also with old instruments in the normal gpib driver.