Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

use matlab to control instrument by GPIB

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.

0 Kudos
Message 1 of 3
(3,609 Views)
This looks like a question for the MATHworks
greetings from the Netherlands
0 Kudos
Message 2 of 3
(3,592 Views)
Yes, I think you can ask Mathwork for some help. 
0 Kudos
Message 3 of 3
(3,565 Views)