acquire iq vector.m

来自「Agilent 仪器与MATLAB互联」· M 代码 · 共 39 行

M
39
字号
% MATLAB/MXA example 7
% Getting IQ data using the MXA driver and plot display

% Version: 1.0
% Date: Sep 11, 2006  
% 2006 Agilent Technologies, Inc.

% TCPIP parameters
mxa_ip = '141.121.92.157';
mxa_port = 5025;

% MXA Interface creation and connection opening
mxa_if = tcpip(mxa_ip,mxa_port);
mxa = icdevice('agilent_mxa.mdd', mxa_if);
connect(mxa,'object')

% Get IQ data
iq = invoke(mxa,'getIQ');

% Create a figure 1 and bring it to the front
figure(1)

% Vector plot (imag vs real)
plot(real(iq),imag(iq))

% Axis adjustment
axis([-.5 .5 -.5 .5])
axis square

% Labels
xlabel('I')
ylabel('Q')
title('IQ vector plot')

% Close the MXA connection and clean up
disconnect(mxa);
delete(mxa);
clear mxa;

⌨️ 快捷键说明

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