AnsweredAssumed Answered

icdevice.connect at 117 error and Agilent 8164A

Question asked by shonschmidt on Dec 15, 2011
Latest reply on Dec 27, 2011 by shonschmidt
Hi.

I'm trying to connect an Agilent 8164A and get the following error:
??? Error using ==> icdevice.connect at 117
The VXIplug&play driver could not connect to the instrument using the specified resource.

I've followed other posts (namely viewtopic.php?f=28&t=26234 and http://www.mathworks.de/matlabcentral/a ... ivi-driver) but still don't understand what I'm doing wrong.

I've installed Agilent's VXI P&P drivers (816x_4_4_1) downloaded from there website and seem to be successful in creating a wrapper driver in Matlab. Here's what I'm executing and the results:

========================================================

EDU>> vxipnpinfo = instrhwinfo('vxipnp')
vxipnpinfo.InstalledDrivers
driverInfo = instrhwinfo('vxipnp','hp816x')
matlabinfo = instrhwinfo('matlab')
matlabinfo.InstalledDrivers
makemid('hp816x') % creates a driver file 'hp816x.mdd in the current directory
driverinfo = instrhwinfo('matlab', 'hp816x')
driverinfo.DriverDllName
deviceObj = icdevice('hp816x.mdd','GPIB0::20::INSTR')
connect(deviceObj)

vxipnpinfo =
InstalledDrivers: {'hp816x'}
VXIPnPRootPath: [1x42 char]
ans =
'hp816x'
driverInfo =
Manufacturer: 'Hewlett-Packard Company'
Model: 'hp816x'
DriverVersion: '1.0'
DriverDllName: [1x60 char]

matlabinfo =
InstalledDrivers: {1x10 cell}
ans =
Columns 1 through 3
'agilent_33120a' 'agilent_34401a' 'agilent_e3648a'
Columns 4 through 6
[1x22 char] [1x22 char] 'lecroy_8600a'
Columns 7 through 8
'lecroy_lt344l_ex' 'tektronix_tds2024'
Columns 9 through 10
'tektronix_tds210' 'hp816x'

driverinfo =
Manufacturer: 'Hewlett-Packard Company'
Model: 'hp816x'
Type: 'VXIPnPInstrument'
DriverType: 'MATLAB VXIplug&play'
DriverName: [1x42 char]
DriverVersion: '1.0'
DriverDllName: ''
ans =
''
Instrument Device Object Using Driver : hp816x
Instrument Information
Type: VXIPnPInstrument
Manufacturer: Hewlett-Packard Company
Model: hp816x
Driver Information
DriverType: MATLAB VXIplug&play
DriverName: hp816x
DriverVersion: 1.0
Communication State
Status: closed

??? Error using ==> icdevice.connect at 117
The VXIplug&play driver could not connect to the instrument
using the specified resource.
If this error is not an instrument error, use MIDEDIT to
inspect the driver.

========================================================

I can successfully talk to the laser using NI's Measurement and Automation Explorer and it reports a GPIB0 address of (0x20). Is there something else I need to do in this process or am I calling something incorrectly? I tried to upload the .mdd wrapper file but apparently the extension is blocked. When chaning it to .txt, it says the file is too big. I'm running 32b Win7 and Matlab 7.12.0 (R2011a). The laser mainframe is an Agilent 8164A.

Thanks in advance for any help or insight.  

Outcomes