Chapter 7 SCPI
SCPI and RAPID!
WCDMA Options Version 6.20
223
Standard TX measurements The example below illustrates how to perform a standard TX test using RAPID!
and SCPI.
‘FILE: RFTXDEMO.RBS
’DESCRIPTION: RAPID! program that measures
’the RMS phase error, the frequency,
’peak power and also checks whether the shape
’of the burst is within the PTT.
’Definition of variables
DIM result(5)
’Opening SCPI as communication port
LET scpi = freefile
OPEN “scpi” as #scpi
’Configuring the measurements as above as a group and
’starting a group measurement
PRINT #scpi, “:CONFigure:MEASure:GROup:RFTX
PRMS,FREQuency,POWer,TEMPlate”
PRINT #scpi, “:MEASure:RFTX:GROup?”
’Read out the result string
INPUT #scpi, result$
’Read out the service register to check if there was
’some error
PRINT #scpi, “:PROG:STB?”
INPUT #scpi, A$
A$ = BIN$(VAL(A$),8)
’Select reaction on event occurred
IF (MID$(A$,2,1) = “1” THEN
’Some error occurred
PRINT #scpi, “:SYST:ERR?”
INPUT #scpi, Err$
GOTO FAIL_EXIT
ELSE
’Measurements have been completed without errors
GOTO PRINT_RESULTS
END IF
’Result procedure of the program
PRINT_RESULTS:
’Converting the result string back into
’four result values
index = 0
result$ = result$ + “,”
DO