Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 289
Creating and Downloading Waveform Files
Programming Examples
Creating and Downloading a Pulse
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 250
for more information)
% verify that communication with the Keysight X-Series signal
generator has been extablished
[status, status_description, query_result] = agt_query(io,'*idn?');
if (status < 0) return; end
% set the carrier frequency and power level on the signal generator
using the Keysight
%Waveform Download Assistant
[status, status_description] = agt_sendcommand(io, 'SOURce:FREQuency
6000000000');
[status, status_description] = agt_sendcommand(io, 'POWer 0');
% define the ARB sample clock for playback
sampclk = 40000000;
% download the iq waveform to the baseband generator for playback
[status, status_description] = agt_waveformload(io, IQData,
'pulsepat', sampclk, 'play', 'no_normscale', Markers);
% turn on RF output power
[status, status_description ] = agt_sendcommand( io, 'OUTPut:STATe
ON' )
You can test your program by performing a simulated plot of the in–phase
modulation signal in Matlab (see
). To do this, enter
plot (i)
at the Matlab command prompt.
For the Keysight X-Series signal generators, the maximum frequency is 6.
For more frequency information, refer to the signal generator’s Data Sheet.
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...