U9361C/F/G/M RCal Measurement Guide 83
Programming with MATLAB
Magnitude Calibration and Comparison with Use Current Meas
% Once the trace has stabilized, press enter to save the trace and
continue
input('Press ''Enter'' when trace stabilized...','s');
fprintf(my_SA, ':TRAC1:MODE VIEW');
input('Switch cable from SG to RCal Unit, then press
''enter''...','s');
% Set desired cal group and row to use current measurement
parameters
fprintf(my_SA, 'SYST:CAL:CGR %d', cal_group);
fprintf(my_SA, ':SYST:CAL:ROW%d:UCM', cal_row);
% Now Run Calibrations (the UCM command automatically selects the
newly inserted Row)
fprintf(my_SA, ':SYST:CAL:INIT:SEL');
input('Switch cable from RCal to SG after Calibration complete,
apply
calibrations manually, then press ''enter''...', 's');
fprintf(my_SA, ':SYST:CAL:ROW1:STAT ON');
fprintf(my_SA, ':TRAC2:TYPE MAXH');
input('Press ''Enter'' when trace 2 stabilized...','s');
fprintf(my_SA, ':TRAC2:MODE VIEW');
disp("Magnitude Cal Demo Complete");