EasyManua.ls Logo

Keysight Technologies N5173B EXG - Page 156

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...
156 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
LAN Programming Interface Examples
Example 1: Reading Out the Channel Response and Calculating
Corrections for an Equalization Filter Using Matlab
This example reads out the channel response from a PSA and calculates a
correction equalization filter that can be loaded into the EXG/MXG.
function [corrFilter] = loadPsaEqFilter(psaDev, destRate)
% [corrFilter] = loadPsaEqFilter(psaDev[, destRate])
% Reads out the current Equalization filter active on the PSA
specified.
% The communication is over TCP-IP (LAN).
% destRate is assumed to be 200e6 if missing
% Example: [corrFilter] = loadPsaEqFilter('psa4')
% output of corrFilter is in time domain.
% NOTE: The equalization filter feature in the PSA Digital
Modulation
% Modulation Analysis mode must be ON for this script to work.
% It can be set to EQ Hold ON.
%
% Typically followed with something like:
% writeMxgFir('a-n5182b-00211', 'EQ_1GHZ_62MHZ', corrFilter);
if (nargin<1 || nargin>2)
error('[corrFilter] = loadPsaEqFilter(psaDev[, destRate]) --
destRate is assumed to be 200e6 if missing');
end
if (nargin<2)
destRate=200e6;
end
% contact PSA using LAN
t=tcpip(psaDev, 5025);
t.OutputBufferSize=1*1024*1024;
t.InputBufferSize=1*1024*1024;
fopen(t);
fprintf(t, ':FETCh:EVM9?\n');
magDb = readArrayOfDoubles(t);
fprintf(t, ':FETCh:EVM10?\n');
phaseDeg = readArrayOfDoubles(t);

Table of Contents

Other manuals for Keysight Technologies N5173B EXG

Related product manuals