Keysight E4428C ESG RF Programming Manual page 297

Signal generators
Table of Contents

Advertisement

Creating and Downloading a Pulse
NOTE
This section applies only to the Keysight MXG and the PSG.
For the Keysight MXG, the maximum frequency is 6 GHz, and the pulsepat.m program's
SOURce:FREQuency 20000000000 value must be changed as required in the following
programs. For more frequency information, refer to the signal generator's Data Sheet.
On the documentation CD, this programming example's name is "pulsepat.m."
This MATLAB programming example performs the following functions:
• I and Q data creation for 10 pulses
• marker file creation
• data scaling
• downloading using Keysight Waveform Download Assistant functions (see "Using the Download
Utilities" on page 258 for more information)
% Script file: pulsepat.m
%
% Purpose:
%To calculate and download an arbitrary waveform file that simulates a
%simple antenna scan pulse pattern to the Keysight MXG/PSG vector signal generator.
%
% Define Variables:
% n - - counting variable (no units)
% t - - time (seconds)
% rise - - raised cosine pulse rise–time definition (samples)
% on - - pulse on–time definition (samples)
% fall - - raised cosine pulse fall–time definition (samples)
% i - - in–phase modulation signal
% q - - quadrature modulation signal
n=4;
t=–1:2/n:1–2/n;
rise=(1+sin(t*pi/2))/2;
on=ones(1,120);
fall=(1+sin(–t*pi/2))/2;
off=zeros(1,896);
Keysight Signal Generators Programming Guide
% defines the number of points in the rise–time and fall–time
% number of points translated to time
% defines the pulse rise–time shape
% defines the pulse on–time characteristics
% defines the pulse fall–time shape
% defines the pulse off–time characteristics
Creating and Downloading Waveform Files
Programming Examples
289

Advertisement

Table of Contents
loading

Table of Contents