MATLAB INSTRUMENT CONTROL TOOLBOX - RELEASE NOTES Manuel d'utilisateur Page 28

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 30
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 27
Using MATLAB's Interface for External Libraries
1MA171_5e Rohde & Schwarz How to use Rohde & Schwarz Instruments in MATLAB
®
28
% In the case that a session got created we evaluate the error further
if ( instr_session ~= 0 )
[errCode, errMsg] = calllib( vxipnpLib, 'rsspecan_error_message',
instr_session, err, errMsg );
errString = sprintf('%s', char(errMsg));
disp( errString );
errMsg = '';
[DummyErr, errCode, errMsg] = calllib( vxipnpLib,
'rsspecan_error_query', instr_session, errCode, errMsg );
errString = sprintf('%d: %s', errCode, char(errMsg));
disp( errString );
% ... and we must make sure to disconnect from this device !
c
alllib( vxipnpLib, 'rsspecan_close', instr_session );
end
e
nd
%
% clean up
unloadlibrary(vxipnpLib);
clear all
3.10 Known Problems
"A 'Selected' compiler was not found. You may need to run mex -setup"
To successfully load a library using the loadlibrary functionality the default compiler
needs to be set up in MATLAB. The supported compilers of the currently available
releases are listed here:
http://www.mathworks.de/support/compilers/current_release/win32.html
and here:
http://www.mathworks.de/support/compilers/current_release/win64.html
.
In this application note the Microsoft® Visual C++® 2008 SP1 V9.0 Professional
Edition compiler was used. Especially on MATLAB 64-bit installations a non-MATLAB
®
compiler needs to be set configured manually.
Vue de la page 27
1 2 ... 23 24 25 26 27 28 29 30

Commentaires sur ces manuels

Pas de commentaire