Agilent Technologies E8663B Portable Generator User Manual


 
Agilent N518xA, E8663B, E44x8C, and E82x7D Signal Generators Programming Guide 259
Creating and Downloading Waveform Files
Programming Examples
% arrange the i-samples and scale the amplitude to simulate an antenna scan
% pattern comprised of 10 pulses
i = .707*[rise on fall off...
[.9*[rise on fall off]]...
[.8*[rise on fall off]]...
[.7*[rise on fall off]]...
[.6*[rise on fall off]]...
[.5*[rise on fall off]]...
[.4*[rise on fall off]]...
[.3*[rise on fall off]]...
[.2*[rise on fall off]]...
[.1*[rise on fall off]]];
% set the q-samples to all zeroes
q = zeros(1,10240);
% define a composite iq matrix for download to the Agilent MXG/PSG using the
% Waveform Download Assistant
IQData = [i + (j * q)];
% define a marker matrix and activate a marker to indicate the beginning of the waveform
Markers = zeros(2,length(IQData)); % fill marker array with zero, i.e no markers set
Markers(1,1) = 1; % set marker to first point of playback
% make a new connection to theAgilent MXG/PSG over the GPIB interface
io = agt_newconnection('gpib',0,19);
% verify that communication with the Agilent MXG/PSG has been established
[status, status_description, query_result] = agt_query(io,'*idn?');
if (status < 0) return; end
% set the carrier frequency and power level on the Agilent MXG/PSG using the Agilent
%Waveform Download Assistant