05-06-2009 01:52 AM
I want to use matlab to control instrument by GPIB like as use teststand to control instrument.
but how can I creat the first step?
like:
g = gpib('agilent', 0, 5);
% To connect the GPIB object to the instrument:
fopen(g) ;
% To query the instrument.
fprintf(g, '*IDN?');
idn = fscanf(g);
% To disconnect the GPIB object from the instrument.
fclose(g);
there gpib('agilent', 0, 5); 0 is mean to index number,
what's the mean of index number?
3ks.
05-06-2009 10:15 AM
05-07-2009 01:24 AM