46
Chapter 2
Basic Operation
Using the Programmatic Interfaces
B
a
si
c Op
er
at
io
n
[instrumentHandle1, errorN, errorMsg ] =
agt_awg_open('pci','PXI1::15');
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);
disp(errorMsg);
disp('program stopped');
return;
else
disp('ok');
end
[ errorN, errorMsg ] = agt_awg_setstate(
instrumentHandle2, 'outputenabled', 'true');
if errorN ~= 0
disp(errorN);
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com