tmtool doesn't detect Agilent 4339b over GPIB or VISA, can't communicate
6 views (last 30 days)
Show older comments
Hello,
I have an Agilent 4339B connected to my PC (Windows 7 64x) through an Adlink USB/GPIB interface.
I have the instrument control toolbox (2.11) and MATLAB (7.11). The toolbox tmtool does not detect the presence of the GPIB device.
instrhwinfo('visa') returns: InstalledAdaptors: {'agilent'}
and
instrhwinfo('gpib') returns: InstalledAdaptors: {'agilent' 'ni'}
tmtool after a scan has no devices under GPIB.
However, I have NI-VISA installed and it detects the device at the address GPIB0::1::INSTR. I can communicate with it using the *IDN? command.
However, the command: HWObj = visa('agilent', 'GPIB0::1::INSTR') returns Invalid RSRCNAME specified. Type 'instrhelp visa' for more information.
and the command: HWObj = gpib('agilent',0,1); returns an OBJ but: fopen(HWObj) returns GPIB: AGILENT: The specified board is not installed or configured properly.
Feeling pretty stuck. Help! Thanks.
0 Comments
Answers (1)
Ankit Desai
on 18 Mar 2011
Hi Wes,
You must configure vendor's VISA utility before those instruments can show up in MATLAB. For NI VISA the utility is called "Measurement and Automation Explorer" while for Agilent VISA it is "Agilent Connection Expert".
Looks like the device is configured correctly for NI VISA since you are able to communicate with it. If you plan to use the instrument using Agilent VISA or Agilent GPIB, you will have to first configure the instrument in Agilent Connection Expert (ACE) utility. ACE is a part of Agilent IO Libraries suite.
Also check if there is no Adlink configuration utility that you are required to setup up prior to seeing the connected instruments in ACE.
Just curious, since you are already able to use NI-VISA to communicate with the instrument - is there any particular reason why you plan to use Agilent VISA and/or Agilent GPIB?
-Ankit
See Also
Categories
Find more on Instrument Control Toolbox Supported Hardware in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!