adv_start.m

来自「MATLAB是一个非常好的用于测量」· M 代码 · 共 34 行

M
34
字号
function ADV_Start()%ADV_START Launches the Advanced Data Visualization program.global g_ADVVendorglobal g_ADVAddress% Check to see if the I/O configuration file existsif 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 figureretry = 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    endend

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?