AnsweredAssumed Answered

Error using icdevice / ScopeMath for Agilent InfiniiVision DSO-X 2024A

Question asked by jarry on Jun 23, 2014
Latest reply on Jun 25, 2014 by jarry
Dear all,

I want to access Agilent InfiniiVision DSO-X 2024A Oscilloscope via Matlab Test and Measurement Tool (tmtool) and the ScopeMath script developed by Agilent (see http://www.mathworks.ch/matlabcentral/fileexchange/22485-agilent-infiniium-and-infiniivision-oscilloscopes---matlab-example).

I believe I have installed all the necessary drivers: IVI Shared Components64_2.2.1.msi , IO LibSuite_16_3_17914.exe , Driver_ivi_matlab_AgInfiniiVision_2_03_0x64 , agx2k3k_setup.exe  and agilent_2000_3000_xseries.zip. Some libraries I actually needed to test data acquisition with the LabView.

After installing drivers I have added to the path (pathtool) MasterConfigurationStore: 'C:\ProgramData\IVI Foundation\IVI\IviConfigurationStore.xml' and the IVIRootPath: 'C:\Program Files (x86)\IVI Foundation\IVI\' .
Then with the setupScopeMath script I could compile the driver library , see below:
-----------------------------------------------------------
>> setupScopeMath
 
Welcome to mex -setup.  This utility will help you set up 
a default compiler.  For a list of supported compilers, see 
http://www.mathworks.com/support/compilers/R2012b/win32.html
 
Please choose your compiler for building MEX-files:
 
Would you like mex to locate installed compilers [y]/n? y
 
Select a compiler:
[1] Lcc-win32 C 2.4.1 in C:\MATLAB~1\sys\lcc
 
[0] None
 
Compiler: 1
 
Please verify your choices:
 
Compiler: Lcc-win32 C 2.4.1
Location: C:\MATLAB~1\sys\lcc
 
Are these correct [y]/n? y
 
Trying to update options file: C:\Users\sych\AppData\Roaming\MathWorks\MATLAB\R2012b\mexopts.bat
From template:              C:\MATLAB~1\bin\win32\mexopts\lccopts.bat
 
Done . . .
 
**************************************************************************
  Warning: The MATLAB C and Fortran API has changed to support MATLAB
           variables with more than 2^32-1 elements.  In the near future
           you will be required to update your code to utilize the new
           API. You can find more information about this at:
           http://www.mathworks.com/help/techdoc/matlab_external/bsflnue-1.html
           Building with the -largeArrayDims option enables the new API.
**************************************************************************

-----------------------------------------------------------

If I run ScopeMath application the ScopeMath Source Selection menu appears. Resource I choose USB0::2391...::INSTR Driver AgilentInfiniiVision_IVICOM.mdd I get an error message "Error using icdevice (line 234)" see print screen pr1.png. The same error message appears if I use AgilentInfiniium_IVICOM.mdd. However, if I try AgInfiniium_IVIC.mdd the error message changes to "Error using icdevice (line 234) The IVI-C driver referenced in D:" . If I inquire instrhwinfo('ivi')
-----------------------------------------------------------
>> instrhwinfo('ivi')

ans =

                  LogicalNames: {}
                    ProgramIDs: {'AgInfiniiVision.AgInfiniiVision'}
                       Modules: {1x15 cell}
    ConfigurationServerVersion: '1.7.0.12115'
      MasterConfigurationStore: 'C:\ProgramData\IVI Foundation\IVI\IviConfigurationStore.xml'
                   IVIRootPath: 'C:\Program Files (x86)\IVI Foundation\IVI\'
-----------------------------------------------------------

Test and Measurement tool recognizes the IVI drivers, however, there is no associated mdd file in Matlab Instrument Drivers (see pr2.png) . Did I do something wrong during compilation (mex -setup)? Note, I use 32 bit Matlab R2012b.

Thanks for any suggestions,
Jarry  

Attachments

Outcomes