Chapter 4 159
Downloading and Using Files
Downloading ARB Waveform Data
[.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 PSG using the
% PSG/ESG 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 the PSG over the GPIB interface
io = agt_newconnection('gpib',0,19);
% verify that communication with the 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 PSG using the PSG Download Assistant