Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 293
Creating and Downloading Waveform Files
Programming Examples
error('ERROR: download() Insufficient input parmaeters.');
end
if length(iqWave)<60
error('ERROR: download() iqWave must contain 60 or more
points.');
end
if nargin<3 name = 'NO_NAME'; end
if nargin<4
markers = zeros(4,length(iqWave));
markers(:,1:4) = 1;
end
if nargin<5
header = [];
end
if length(iqWave) ~= length(markers)
error('ERROR: download() The length of the iqWave and the
marker arrays must be the same.');
end
% Process waveform and marker data
[iqData, rms] = FormatWaveform( iqWave );
mkrData = FormatMarkers( markers );
% Download the Waveform
wfmCmd = CreateWaveformCommand( name, length(iqWave) );
mkrCmd = CreateMarkerCommand( name, length(markers) );
hdrCmd = CreateHeaderCommand( name, rms, header );
bufSize = 8192;
t = tcpip(tcpipAddress, 5025);
t.OutputBufferSize = bufSize;
Содержание X-Series
Страница 4: ...4 ...
Страница 10: ...10 Contents ...