tmtool doesn't detect Agilent 4339b over GPIB or VISA, can't communicate
6 次查看(过去 30 天)
显示 更早的评论
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 个评论
回答(1 个)
Ankit Desai
2011-3-18
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
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Instrument Control Toolbox Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!