Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 299
Creating and Downloading Waveform Files
Programming Examples
Playing Downloaded Waveforms
This is a simple example to play a waveform that was downloaded to the
instrument. This example can be easily modified to send additional SCPI
commands.
This programming example’s name is “
PlayWaveform.m
.” This example is not
included on the Documentation CD.
This MATLAB programming example performs the following functions:
— plays a waveform that has been downloaded
function PlayWaveform( tcpipAddress, name )
% PlayWaveform( tcpipAddress, name );
% Copyright 2009 Keysight Technologies Inc.
%
% Play the waveform in the Signal Generator
%
% INPUT PARAMETERS:
% tcpipAddress - '141.121.148.188' Whatever works for your signal
Generator!
% name - Waveform name - 21 characters max
%
% EXAMPLE:
% name = 'My_Test'; % Waveform name
% tcpipAddress = '141.121.151.129'; % Signal Generator IP
Address
% PlayWaveform( tcpipAddress, name ); % play the waveform
playCmd = [':RAD:ARB:WAV "WFM1:' name '"'];
t = tcpip(tcpipAddress, 5025);
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 PlayWaveform”
.
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...