from
Data Visualization Application - Agilent EXA, MXA, and PSA Spectrum Analyzers
by Matt
Data Visualization Software for the Agilent EXA, MXA, and PSA Signal and Spectrum Analyzers
|
| ADV_Start() |
function ADV_Start()
%ADV_START Launches the Advanced Data Visualization program.
global g_ADVVendor
global g_ADVAddress
% Check to see if the I/O configuration file exists
if exist( 'AgilentADVConfig.mat', 'file' ) == 0
g_ADVVendor = 'agilent';
g_ADVAddress = 'TCPIP0::localhost::inst0::INSTR';
IOConfig;
else
vars = load( 'AgilentADVConfig.mat', 'vendor', 'visaAddress' );
g_ADVVendor = vars.vendor;
g_ADVAddress = vars.visaAddress;
end
% Display the ADV figure
retry = 1;
while retry
try
ADVFigure;
retry = 0;
catch
resp = questdlg( 'Could not connect to the spectrum analyzer. Would you like to edit the I/O configuration?', ...
'I/O Error', 'Yes', 'No', 'Yes' );
if strcmp( resp, 'Yes' )
IOConfig;
else
retry = 0;
end
end
end
|
|
Contact us at files@mathworks.com