![background image](http://html1.mh-extra.com/html/agilent-technologies/n6030-80006/n6030-80006_user-manual_2868465043.webp)
42
Chapter 2
Basic Operation
Using the Programmatic Interfaces
B
a
si
c Op
er
at
io
n
[ instrumentHandle, errorN, errorMsg ] =
agt_awg_open('pci','PXI*::*');
if( errorN ~= 0 )
% An error occurred while trying to open the
session.
disp('Could not open a session to the
instrument');
return;
end
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');
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com