
Chapter 2
53
Basic Operation
Using Programmatic Interfaces
disp('Enabling the instrument output');
[errorN, errorMsg] = agt_awg_setstate(instrumentHandle,
'outputenabled', 'true');
if(errorN ~= 0)
% An error occurred while trying to enable the output.
disp('Could not enable the instrument output');
return;
end
disp('Setting the instrument to ARB mode');
[errorN, errorMsg] = agt_awg_setstate(instrumentHandle,
'outputmode', 'arb');
if(errorN ~= 0)
% An error occurred while trying to set the ARB mode.
disp('Could not set the instrument to ARB mode');
return;
end
disp('Transfering the waveform to the instrument');
[waveformHandle, errorN, errorMsg] =
agt_awg_storewaveform(instrumentHandle, waveform);
if(errorN ~= 0)
% An error occurred while trying to transfer the
waveform.
disp('Could not transfer the waveform to the
instrument');
return;
end
disp('Initiating playback of the waveform on the
instrument');
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...