292 Keysight Signal Generators Programming Guide
Creating and Downloading Waveform Files 
Programming Examples 
NOTE For the Keysight MXG, the SOURce:FREQuency 20000000000 value must be changed as 
required in the following programs. For more information, refer to the Data Sheet.
barker.m   This programming example calculates and downloads an arbitrary waveform file 
that simulates a simple 7–bit barker RADAR signal to the PSG vector signal 
generator.
chirp.m   This programming example calculates and downloads an arbitrary waveform file 
that simulates a simple compressed pulse RADAR signal using linear FM chirp to 
the PSG vector signal generator.
FM.m   This programming example calculates and downloads an arbitrary waveform file 
that simulates a single tone FM signal with a rate of 6 KHz, deviation of 
=/– 14.3 KHz, Bessel null of dev/rate=2.404 to the Keysight MXG/PSG vector signal 
generator.
nchirp.m   This programming example calculates and downloads an arbitrary waveform file 
that simulates a simple compressed pulse RADAR signal using non–linear FM 
chirp to the PSG vector signal generator.
pulse.m   This programming example calculates and downloads an arbitrary waveform file 
that simulates a simple pulse signal to the PSG vector signal generator.
pulsedroop.m   This programming example calculates and downloads an arbitrary waveform file 
that simulates a simple pulse signal with pulse droop to the PSG vector signal 
generator.
Downloading a Waveform, Markers, and Setting the Waveform Header
NOTE This example works on either a 32bit or 64bit system that is connected over the LAN. So, 
the Waveform Download Assistant—which only works on 32bit systems—is not required, to 
use this program.
Additional documentation is available on this program through Matlab, by adding your PC’s 
path to the Matlab’s path and then from the Matlab command line type: “help download”.
This is example is used to download a waveform to the instrument.
On the documentation CD, this programming example’s name is “Download.m.”
This MATLAB programming example performs the following functions:
• downloads a waveform
• downloads the waveform’s marker information
• downloads the waveform’s header information
function Download( tcpipAddress, iqWave, name, markers, header )
% Download( tcpipAddress, iqWave, name, markers, header );