Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling Agilent 8510C Network Analyzer and GPIB-USB with Matlab

I want to control Agilent 8510C NW analyzer using Matlab. I am using GPIB-USB controller. I am able to send commands to the NW analyzer and can change the start and stop frequencies and Marker position. But when it comes to reading data (S-Parameters and Marker values) i am unable to do it. Below is the snippet of Matlab code which i am using. Please any advice on below:

 

fprintf(sport, '++auto 1');
fprintf(sport, '++eos 0');
fprintf(sport,'FORM4');
fprintf(sport,'MARK1;OUTPDATA');
%fprintf(sport,'OUTPRAW1');
%fprintf(sport,'S11;OUTPDATA');;
pause(10)
fprintf(sport, '++read eoi');
d=fgets(sport);
disp(d);
fclose(sport);
0 Kudos
Message 1 of 1
(533 Views)