Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Error message in VISA

My system:

GPIB-USB-B cable
Agilent 34970A

Windows XP
Labview 6.0
MAX 3.1.1.3003
Visa 2.6

Agilent I/O library M.01.01.04

Some strange message comes(see the attachment picture)

I am a greenhand, I am forced to do these kind of strange things.
If you can give me any suggestion, you will be appreciated greatly.
0 Kudos
Message 1 of 2
(3,292 Views)
Hello,

The error you are seeing is indicative of another program having already opened the VISA resource you are trying to access; in this case COM1 or ASRL1::INSTR. One question I have is, "Are you trying to use the serial resource at all?" You mentioned you have a GPIB-USB-B device, so I presume you are connecting to your Agilent instrument via a GPIB and not a serial port. While you can use VISA to communicate in either case, if you could indicate more specifically your desired functionality, I may be able to guide us more clearly. One thing you can do to ensure that you have closed all VISA resources that may have been opened by VISAIC or LabVIEW is to close MAX, VISAIC, and LabVIEW entirely (not just VI's). After doing this, can you open a VISA session (either using VISAIC or LAbVIEW) to a serial resource? If you are trying to communicate over the GPIB, can you do so? If so, what program are you using? More specifically, are you using VISA or perhaps using NI-488.2 directly through the communicator in MAX? Also, is there a reason you have not upgraded VISA to a later version (such as 3.2)? You may consider this, although I don't currently suspect that this is the problem 🙂

In any event, it will be helpful to have an NI-Spy capture of the operations that are taking place. Use the link below to get directions on obtaining a spy capture if you are unfamiliar, then use the save option in the file menu to save it (after capturing the operations producing the error of course 🙂

Spy Capture Link:
-----------------
http://digital.ni.com/public.nsf/3efedde4322fef19862567740067f3cc/8d890ec09b15c05a86256e6f007e3e86?OpenDocument

Repost with a description of your desired functionality and any of the above notes you are able to try in the mean time!

Best Regards,

JLS
Best,
JLS
Sixclear
0 Kudos
Message 2 of 2
(3,262 Views)