
52
Chapter 2
Basic Operation
Using Programmatic Interfaces
MATLAB Example 1, Creating and Playing a Waveform
% N6030 Matlab Interface, Version 1.12
% Copyright (C) 2005, 2006 Agilent Technologies, Inc.
%
% A simple example of how to create a waveform, open a
% session to the Agilent N8241A AWG, play the waveform,
% and close the session.
% Note: the waveform must be configured before
downloading.
% If settings are changed after downloading the
waveform,
% the waveform must be re-downloaded.
%
% 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];
% Open a session
disp('Opening a session to the instrument');
[instrumentHandle, errorN, errorMsg] =
agt_awg_open('TCPIP','TCPIP0::A-N8241-90XXX::inst0::INST
R');
if(errorN ~= 0)
% An error occurred while trying to open the session.
disp('Could not open a session to the instrument');
return;
end
Содержание N8241A
Страница 8: ...7...
Страница 9: ...8...
Страница 27: ...28 Chapter 1 Introducing the N8241 2A AWGs Getting Started 6 The AWG is now configured to the PC...
Страница 33: ...34 Chapter 1 Introducing the N8241 2A AWGs Maintenance...
Страница 45: ...46 Chapter 2 Basic Operation Using the Graphical User Interface Figure 2 6 N8241A Playback of a Sequence...
Страница 64: ...Chapter 2 65 Basic Operation Using Programmatic Interfaces...
Страница 65: ...66 Chapter 2 Basic Operation Using Programmatic Interfaces...
Страница 73: ...74 Chapter 3 Theory of Operation Waveform Playback Figure 3 2 Advanced Sequencer Flow Chart Figure 3 3...
Страница 76: ...Chapter 3 77 Theory of Operation Waveform Playback Figure 3 3 Waveform Play Flow Chart...
Страница 77: ...78 Chapter 3 Theory of Operation Waveform Playback Figure 3 4 Scenario and Sequence Play Flow Charts...
Страница 88: ...Chapter 3 89 Theory of Operation Multiple Module Synchronization Figure 3 9 Cabling Using and External Clock...
Страница 91: ...92 Chapter 3 Theory of Operation Multiple Module Synchronization...
Страница 109: ...110 Chapter 5 Direct Digital Synthesis Option 330 Theory of Operation Figure 5 7 DDS...