Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 291
Creating and Downloading Waveform Files
Programming Examples
pulsedroop.m This programming example calculates and downloads
an arbitrary waveform file that simulates a simple
pulse signal with pulse droop to the vector signal
generator.
Downloading a Waveform, Markers, and Setting the Waveform Header
This is example is used to download a waveform to the instrument.
On the documentation CD, this programming example’s name is
“
Download.m
.”
This MATLAB programming example performs the following functions:
— downloads a waveform
— downloads the waveform’s marker information
— downloads the waveform’s header information
function Download( tcpipAddress, iqWave, name, markers, header )
% Download( tcpipAddress, iqWave, name, markers, header );
% Copyright 2009 Keysight Technologies Inc.
%
% This function downloads a waveform and markers to an Keysight
X-Series signal generator,
% X-Series Vector Signal Generator. markers is a two dimentional
% array that contains 4 markers. The header contains the sample
rate, the
% waveform rms voltage, and the marker routings to the pulse
modulator and
% the ALC hold. Default values used by the header if values are not
present.
% header.sampleRate = 100e6; % Waveform Sample Rate
% header.rms = CalculateWaveformRMS(iqWave); % Waveform RMS voltage
% header.peak = 1.414; % Waveform Peak voltage
% header.runtimeScaling = 70; % Runtime scaling in
percent
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 download”
.
Содержание X-Series
Страница 4: ...4 ...
Страница 10: ...10 Contents ...