Programming the Spectrum Monitor Calibration

Programming the Spectrum Monitor Calibration

Last updated: December 3, 2008

This section provides an example of how to run the Spectrum Monitor Calibration via the GPIB.

The following procedure assumes the PC running this program is connected to the test set via the GPIB port.

  1. Remove any RF power source from the RF IN/OUT connector of the test set.
  2. Initiate the Spectrum Monitor Calibration.
  3. Wait for the Spectrum Monitor Calibration to complete (50-60 seconds).
  4. Retrieve the Spectrum Monitor Calibration status. (The calibration completed successfully if the status is 0.)

Example Spectrum Monitor Program

 
10     COM Name1$[30],Rev1$[30]! Set string variable lengths
20     ON TIMEOUT 7,15 CALL Timeout
30                       !Timeout protection subroutine; after 15 seconds of inactivity, the
40                       ! program stops and clears the GPIB bus (so the GPIB bus doesn't hang)
50                       !
60     OUTPUT 714;"syst:appl?"! Query which TA or LA firmware is active on the E5515
70     ENTER 714;Name1$
80     PRINT "Active Test or Lab Application = ";Name1$
90     PRINT "  The TA or LA listed above should be `GSM/GPRS Mobile Test' or similar."
100     OUTPUT 714;"syst:appl:rev?"! Query which revision of TA or LA is active
110     ENTER 714;Rev1$
120     PRINT ""
130     PRINT "TA or LA Revision = ";Rev1$
140     PRINT ""
150     PRINT " Remove any RF power source from the RF IN/OUT connector of the Test Set;"
160     PRINT "  then press the CONTINUE key on this PC"
170     PAUSE
180     OUTPUT 714;"cal:smon?"
190     WAIT 60       ! Wait about 50 to 60 seconds to ensure calibration is finished
200                    ! before retrieving cal status; this wait time should be checked with
210                    ! your program/PC/test system to verify sufficient wait time is allowed
220     ENTER 714;Smonstat       ! Retrieve the Spectrum Monitor Calibration Status
230     PRINT ""
240     PRINT "Spectrum analyzer calib. successful if result is zero.  Result = ";Smonstat
250     PRINT ""
260     PRINT " "
270     !
280     !
290     END
300  Timeout: SUB Timeout
310                PRINT "Program timeout!!"
320                CLEAR 7
330                CLEAR 714
340                SUBEND

Returned Values

The program example above returns:

Related Topics


Programming the Spectrum Monitor

Spectrum Monitor Calibration

Phase and Amplitude versus Time Measurement Description