EasyManua.ls Logo

Keysight Technologies N5166B CXG - Page 293

Keysight Technologies N5166B CXG
398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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;

Table of Contents

Other manuals for Keysight Technologies N5166B CXG

Related product manuals