AnsweredAssumed Answered

Connecting Agilent 33220A through USB to Matlab

Question asked by orielav on Jan 12, 2015
Latest reply on Jan 13, 2015 by orielav
Hi All, 

I have been struggling with this problem for some days now, and cannot get my head round it unfortunately. I would appreciate your help.

I am trying to control an Agilent 33220A through Matlab. I installed the Keysight I/O library, all relevant drivers (version 1.3.5.0) and have connected the device to the computer. The Keysight connection expert detects it at this address:

*USB0::0x0957::0x0407::MY44003690::0::INSTR*

I am trying to adapt the code from this Agilent document to work with USB:

*http://cp.literature.agilent.com/litweb/pdf/5990-3465EN.pdf*

They use the following code to connect the 33220a to Matlab:

*device = icdevice(‘Agilent33220.mdd’,’GPIB0::10::INSTR’);*
*connect(device);*

However, I substituted it with the following code:

*vu = visa('agilent', 'USB0::0x0957::0x0407::MY44003690::0::INSTR')*
*device = icdevice('agilent_33220a.mdd',vu);*
*connect(device);*

This is the error I get when I run the program with the 33220a ON and connected via USB

*Error using icdevice/connect (line 112)*
*The specified configuration: USB0::0x0957::0x0407::MY44003690::0::INSTR is not available.*
*Use INSTRHWINFO for a list of available configurations. Use INSTRFIND to*
*determine if other instrument objects are connected to the requested instrument.*
*If this error is not an instrument error, use MIDEDIT to inspect the driver.*

*Error in signal_generator (line 36)*
*connect(device);*

Could someone shed some light on what I am doing wrong? Thank you in advance for your help,

Orielav  

Outcomes