09-05-2008 11:49 AM
I am using GPIB to connect my Agilent Signal Generator to a VI. I am using the correct port that the generator provides and correct VI's for this particular model (22330A). Everything has run before but I am getting an error in MAX that says the GPIB has no connected interfaces? How do I connect this signal generator?
Thanks
09-05-2008 12:19 PM - edited 09-05-2008 12:21 PM
Just need to clarify some things. By port, do you actually mean GPIB address? What do you mean 'has run before'? The error in MAX - is it saying no interfaces (i.e. no GPIB), or no instruments detected? I don't think that model number is correct. Also, what is the make and model of the GPIB controller? If it's an NI board, what version of NI-488.2 are you running?
p.s. You also posted to the mulit-function DAQ board and this should have been posted to the instrument control board.
09-05-2008 01:39 PM
09-08-2008 02:27 PM
Have you tried the instrument driver available for this instrument?
I have enclosed the link here.
09-08-2008 02:39 PM
If you run MAX and select 'Scan for Instruments', you should be able to detect all of the GPIB instruments unless:
1. The controller has gone bad
2. One of the instrument's GPIB interface is defective and causing all to fail. Some faults can affect the entire bus.
3. A defective cable is being used. Again, some faults can affect the entire bus.
I would recomend that you disconnect everything and add one cable/one instrument at a time. If MAX still fails to return anything when you do a scan and there is only one instrument on the bus, you might want to try a different GPIB controller if you have one or try the one you have on another pc.
09-16-2008 08:31 AM
10-20-2008 03:03 PM
I too have been unable to get the GPIB-USB-HS to work with VISA. I am using CVI 8.5, MAX 4.3, VISA 4.2 and NI-488.2 2.5. MAX does see the GPIB-USB-HS device, and instrument scans show all connected GPIB instruments. My application code (either CVI or LabView) does NOT see any connected instruments. viOpen calls generate the error "The interface type is valid, but the specified interface number is not configured." Doing a resource scan using viFindRsrc returns only my asynchronous ASRL VISA devices (i.e. my com and lpt ports). This behavior is identical using LabView 8.5. It appears that MAX is able to see the connected devices beacause it uses the low level GPIB commands and thus bypasses the VISA layer. This is confirmed by NI-SPY. The NI utility "VISA interactive control" also reports only the ASRL devices, and not the connected intruments. All of the above (including executables) work as expected when using a similar usb-GPIB device from Keithley (KUSB-488). A work-around for this seems to be that I must use only low level GPIB drivers, but that would require re-writting all of our existing VISA based code (and it also defeats the whole purpose of VISA).
10-20-2008 05:35 PM
10-20-2008 09:00 PM
10-22-2008 08:25 AM
Thanks for you response Josh and Dennis. I did try several other GPIB addresses without any luck. Dennis you are right about the Keithley USB-GPIB drivers conflicting with the NI drivers -- they definitely cannot coexist. But that wasn't my problem, each driver is smart enough to see the other and refuses to install itself until the other is removed first. That pretty much precludes using both Keithley and NI USB-GPIB devices in one system, but that's ok.
After beating my head against the wall for a few more hours, I found that the problem was that that the NI GPIB-USB-HS device needs to have the NiVi488.dll passport explicitly enabled. By default (inexpilcably), it is not -- ergo no VISA. MAX is perfectly happy using just low level GPIB commands, so it thinks everthing is fine, but any applications using VISA commands do not work. Enabling the passport is simple enough, although it is well hidden in the MAX menus ( Tools -> NI-VISA -> VISA Options -> Passports). After doing this, the NI device works just fine.