
54
Chapter 2
Basic Operation
Using Programmatic Interfaces
[errorN, errorMsg] =
agt_awg_playwaveform(instrumentHandle, waveformHandle);
if(errorN ~= 0)
% An error occurred while trying to playback the
waveform.
disp('Could not initiate playback of the waveform on
the instrument');
return;
end
disp('Press ENTER to close the instrument session and
conclude this example.');
pause;
agt_awg_close(instrumentHandle);
disp('Session to the instrument closed successfully.');
MATLAB Example 2, Synchronizing Two N8241/2A AWGs
MATLAB Example 2, Synchronizing Two AWG Modules
% N6030 Matlab Interface, Version 1.12
% Copyright (C) 2005, 2006 Agilent Technologies, Inc.
%
% This example initiates dual module synchronized
waveform
% playback.
%
% Use agt_awg_browse to identify the modules.
%
% Create a waveform - a sine wave with 2000 pts
% Played at 1250 MHz, this will produce a tone of 1.250
MHz
numberOfSamples = 2000;
samples = 1:numberOfSamples;
ch1 = sin(2 * samples/numberOfSamples * 2*pi);
ch2 = cos(2 * samples/numberOfSamples * 2*pi);
waveform = [ch1; ch2];
Summary of Contents for N8241A
Page 8: ...7...
Page 9: ...8...
Page 33: ...34 Chapter 1 Introducing the N8241 2A AWGs Maintenance...
Page 64: ...Chapter 2 65 Basic Operation Using Programmatic Interfaces...
Page 65: ...66 Chapter 2 Basic Operation Using Programmatic Interfaces...
Page 76: ...Chapter 3 77 Theory of Operation Waveform Playback Figure 3 3 Waveform Play Flow Chart...
Page 91: ...92 Chapter 3 Theory of Operation Multiple Module Synchronization...
Page 109: ...110 Chapter 5 Direct Digital Synthesis Option 330 Theory of Operation Figure 5 7 DDS...