
Chapter 2
55
Basic Operation
Using Programmatic Interfaces
% Try to open a session
disp('Opening a session to the instrument');
[instrumentHandle2, errorN, errorMsg] =
agt_awg_open('TCPIP','TCPIP0::A-N8241-90XXX::inst0::INST
R');
if errorN ~= 0
disp(errorN);
disp(errorMsg);
disp('program stopped');
return;
else
disp('ok');
end
[instrumentHandle1, errorN, errorMsg] = agt_awg_open
('TCPIP','TCPIP0::A-N8241-90XXX::inst0::INSTR');
if errorN ~= 0
disp(errorN);
disp(errorMsg);
disp('program stopped');
return;
else
disp('ok');
end
disp('Enabling the instrument output');
[errorN, errorMsg] =
agt_awg_setstate(instrumentHandle1, 'outputenabled',
'true');
if errorN ~= 0
disp(errorN);
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...