⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 acquire iq vector.m

📁 Agilent 仪器与MATLAB互联
💻 M
字号:
% 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -