164 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
LAN Programming Interface Examples
either the automatable loadPsaEqFilterFreq.m example (1) or the
loadVsaEqFilter.m (example 3) to manually work with the VSA 89600 software.
This example can also be used to create real modulation FIRs.
function [rateAdjustedFilter]=writeMxgFir(host, instrumentFilename,
timeDomainFilter, osr, rate, destRate, maxTaps)
% writeMxgEqFir(host, instrumentFilename, timeDomainFilter, osr,
rate, destRate, maxTaps);
% writes filter to 'instrumentFilename' on 'host' using tcp-ip. Real
or complex is
% auto-detected. osr is assumed to be 1 if it is missing. rate is
assumed
% to be 200Mhz if missing. destRate is assumed to be 200Mhz if
missing.
% maxTaps is the hardware limit of the MXG (256 if not specified).
% This value should be 256 for the Equalization filter and 32*osr
for the
% Arb Modulation filter. Note that the filter has a rectangular
window
% applied with a width of maxTaps centered about the peak point.
% Example: writeMxgEqFir('mxg1', 'a', [-0.1 0.1 0.4 0.1 0.4 0.1
-0.1]);
if (nargin<3 || nargin>7)
error('usage: writeMxgFir(host, instrumentFilename,
timeDomainFilter[, osr[, rate[, destRate[, maxTaps]]]])');
end
if (nargin<4)
osr=1;
end
if (nargin<5)
rate=200e6;
end
if (nargin<6)
destRate=200e6;
end
if (nargin<7)
maxTaps=1024;
end
% adjust coefficients for destination rate
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...