Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 159
Programming Examples
LAN Programming Interface Examples
% The communication is over TCP-IP (LAN).
% destRate is assumed to be 200e6 if missing
% displayCorr is assumed to 0 (off) if missing
% Example: [corrFilter] = loadPxaEqFilter('pxa4')
% output of corrFilter is in time domain.
% NOTE: The equalization filter feature on the PXA must be ON for
this
% script to work. It can be EQ Hold ON.
%
% Typically followed with something like:
% writeMxgFir('a-n5182b-00211', 'EQ_1GHZ_62MHZ', corrFilter);
if (nargin<1 || nargin>3)
error('[corrFilter] = loadPxaEqFilter(pxaAddress[, destRate[,
displayCorr]]) -- destRate is assumed to be 200e6 if missing');
end
if (nargin<2)
destRate=200e6;
end
if (nargin<3)
displayCorr=0;
end
% contact PXA
t=tcpip(pxaAddress, 5025);
t.OutputBufferSize=1*1024*1024;
t.InputBufferSize=1*1024*1024;
fopen(t);
fprintf(t, ':DISPlay:DDEM:TRAC2:FEED "Eq Impulse Response1"\n');
fprintf(t, 'DISP:DDEM:TRACe2:FORMat REAL\n');
fprintf(t, 'calc:DDEM:DATA2?\n');
realTime = readArrayOfDoubles(t);
fprintf(t, 'DISP:DDEM:TRACe2:FORMat IMAG\n');
fprintf(t, 'calc:DDEM:DATA2?\n');
imagTime = readArrayOfDoubles(t);
coeffs = re 1i.*imagTime;
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...