EasyManua.ls Logo

Keysight Technologies N5173B EXG - Page 161

Keysight Technologies N5173B EXG
398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 161
Programming Examples
LAN Programming Interface Examples
displayOversample = 100;
xcoordsOversample =
((1:(displayOversample*length(fcorr)))-(displayOversample*lengt
h(fcorr)+2)/2)/(length(fcorr))*destRate/displayOversample;
% plot amplitude correction
figure;plot(xcoordsOversample,
resample(20*log10(abs(fcorr)),displayOversample,1,100));
% plot phase correction
fcorrz = fftshift(fft(ifftshift(resampledTime)));
figure;plot(xcoordsOversample,
resample(unwrap(angle(fcorrz)),displayOversample,1,100)/pi*180);
end
% clip off the center 256 (if necessary)
if (length(resampledTime)>256)
[~, index] = max(abs(resampledTime));
center=index;
left = center-127;
right = left+255;
clippedTime=resampledTime((left):(right));
else
clippedTime = resampledTime;
end
corrFilter=clippedTime;
end
function array = readArrayOfDoubles(fid)
line = fgets(fid);
array = sscanf(line, '%g%*c');
end
Example 3: Reading a VSA Trace and Setting up the Equalization Filter
Using Matlab
This example reads a VSA trace of “Eq Ch Freq Resp” or “Eq Impls Resp” and
creates an equalization filter compatible with the MXG.
function [corrFilter] = loadVsaEqFilter(filename, destRate)
% [corrFilter] = loadVsaFilter(filename[, destRate])

Table of Contents

Other manuals for Keysight Technologies N5173B EXG

Related product manuals