MATLAB INSTRUMENT CONTROL TOOLBOX - RELEASE NOTES Instrukcja Użytkownika Strona 28

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 30
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.
Przeglądanie stron 27
1 2 ... 23 24 25 26 27 28 29 30

Komentarze do niniejszej Instrukcji

Brak uwag