Chapter 7 SCPI
The Measurement subsystems
240 WCDMA Options Version 6.20
How to convert a result string back into numeric variables
The example program below illustrates how the returned string can be converted
back into numeric variables in a RAPID! program.
PRINT #scpi, “:MEAS:GSM:RFTX:ALL?”
INPUT #scpi, result$
index = 0
result$ = result$ + “,”
DO
‘ Find the position within result$, where the first
comma appears
P = INSTR(result$, “,”)
’ Read out the part of result$ in front of the first
comma and convert it into a numeric value
result(index) = VAL(LEFT$(result$, P – 1))
’ Cut off the value just read from result$
result$ = MID$(result$, P +1))
index = index + 1
LOOP UNTIL result$=””
MEASure:ARRay The
:ARRay command element makes the 4400 perform any measurement
property a user-definable number of times. All measurement result values
obtained during the process will be stored in an internal array and can be read
out using the related commands of the FETCh subsystem or will be returned in
case the measurement process has been started using the query format of the
command.
After the specified number of measurements have been performed, the measure-
ment will be stopped and no further measurement result values will be stored
Examples
:MEASure:GSM:CONTinuous:RFTX:PPEAk and
:MEASure:GSM:RFTX:PPEAk
are identical. Either command will start the measurement of the peak phase error. The
latest result of this measurement (like “5.84”) will be stored internally. It will be
overwritten as soon as a new measurement result has been achieved.
To read out the current measurement result, use the FETCh subsystem:
:FETCh:GSM:RFTX:PPEAk?
:MEASure:RFTX:ALL
This command will start the continuous measurement of all relevant RFTX parame-
ters. After this command has been issued, you may continue with e.g. an RF RX MEA-
Sure command.
All 19 single measurement results will be stored internally. As soon as a new mea-
surement result has been achieved, the previous value will be overwritten.
To read out the measurement results achieved by the :MEAS:RFTX:ALL com-
mand, use the :FETCh:GSM:RFTX:ALL? command.
:MEASure:GSM:RFTX:ALL?
As in the example above, the continuous measurement of all relevant RFTX parame-
ters will be started. Unlike the example above, this command will wait until all
19 measurement results have been achieved and will return all of them in a string,
separated by commas. The measurements will continue and later results may be read
out, using the FETCh:GSM:RFTX:ALL? command.