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