Keysight E4428C ESG RF Programming Manual page 301

Signal generators
Table of Contents

Advertisement

% Copyright 2009 Keysight Technologies Inc.
%
% This function downloads a waveform and markers to an Keysight ESG-C,
% PSG-C/D, or MXG Vector Signal Generator. markers is a two dimentional
% array that contains 4 markers. The header contains the sample rate, the
% waveform rms voltage, and the marker routings to the pulse modulator and
% the ALC hold. Default values used by the header if values are not present.
%
header.sampleRate = 100e6;
%
header.rms = CalculateWaveformRMS(iqWave); % Waveform RMS voltage
%
header.peak = 1.414;
%
header.runtimeScaling = 70;
%
header.pulse = 'None';
%
header.alcHold = 'None'; % Marker routing 'Non','M1','M2','M3','M4'
%
header.description = 'Keysight Technologies'; % User provided description
%
% INPUT PARAMETERS:
%
tcpipAddress - '141.121.148.188' What ever works for your signal Generator!
%
name
- Waveform name - 21 characters max
%
iqWave
- Complex waveform, min length 60 points
%
markers
- markers(4,length(iqWave)) 4 possible markers
%
header
- Structure containing waveform information.
%
% OUTPUT PARAMETERS:
%
% EXAMPLES:
%
name = 'My_Test';
%
tcpipAddress = '141.121.151.129';
%
n = 1000;
%
phase = (102*pi/n)*(0:(n-1));
%
iqWave= complex(cos(phase),sin(phase)); % Create single tone
%
markers = zeros(4,n);
%
markers(1,1:2) = 1;
%
markers(2,1:4) = 1;
%
markers(3,1:8) = 1;
%
markers(4,1:16) = 1;
%
header.sampleRate = 50e6;
%
Download( tcpipAddress, iqWave, name, markers, header);
%
% Range checks
if nargin<2
error('ERROR: download() Insufficient input parmaeters.');
Keysight Signal Generators Programming Guide
% Waveform Sample Rate
% Waveform Peak voltage
% Runtime scaling in percent
% Marker routing 'Non','M1','M2','M3','M4'
% Waveform name
% Signal Generator IP Address
% Points in waveform
% Create markers
% Set Sample Rate to 50 MHz
Creating and Downloading Waveform Files
Programming Examples
293

Advertisement

Table of Contents
loading

Table of Contents