EasyManuals Logo

Keysight E4428C ESG RF User Manual

Keysight E4428C ESG RF
404 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
Page #306 background imageLoading...
Page #306 background image
298 Keysight Signal Generators Programming Guide
Creating and Downloading Waveform Files
Programming Examples
hdrCmd = ['RADio:ARB:HEAD:WRIT "WFM1:' file_name '","' hdr.description '",' num2str(
hdr.sampleRate ) ',' num2str(hdr.runtimeScaling) ',NONE,' hdr.alcHold ',UNSP,' hdr.pulse
',UNSP,UNSP,UNSP,' num2str(hdr.peak) ',' num2str(hdr.rms)];
end
function wfmCmd = CreateWaveformCommand( file_name, points )
% :MMEM:DATA "<file_name>",#ABC
% "<file_name>" the I/Q file name and file path within the signal generator
% # indicates the start of the data block
% A the number of decimal digits present in B
% B a decimal number specifying the number of data bytes to follow in C
B = num2str(4*points); % Bytes in waveform
A = num2str(length(B));
wfmCmd = [':MEM:DATA:UNPR "WFM1:' file_name '",#' A B ];
end
function mkrCmd = CreateMarkerCommand( file_name, points )
B = num2str(points); % Bytes in marker file
A = num2str(length(B));
mkrCmd = [':MEM:DATA:UNPR "MKR1:' file_name '",#' A B ];
end
Playing Downloaded Waveforms
NOTE This example works on either a 32bit or 64bit system that is connected over the LAN. So,
the Waveform Download Assistant—which only works on 32bit systems—is not required, to
use this program.
Additional documentation is available on this program through Matlab, by adding your PC’s
path to the Matlab’s path and then from the Matlab command line type: “help
PlayWaveform”.
This is a simple example to play a waveform that was downloaded to the instrument. This example
can be easily modified to send additional SCPI commands.
On the documentation CD, this programming example’s name is “PlayWaveform.m.”
This MATLAB programming example performs the following functions:
plays a waveform that has been downloaded
function PlayWaveform( tcpipAddress, name )
% PlayWaveform( tcpipAddress, name );

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight E4428C ESG RF and is the answer not in the manual?

Keysight E4428C ESG RF Specifications

General IconGeneral
BrandKeysight
ModelE4428C ESG RF
CategoryPortable Generator
LanguageEnglish

Related product manuals