Chapter 7 SCPI
SCPI and RAPID!
WCDMA Options Version 6.20
219
SCPI and RAPID!
This section is an application-oriented guide on how to use the functionality of
SCPI through RAPID!.
Executing SCPI commands through RAPID!
Reading SCPI data through RAPID!
Using queries
Event handling – registers
Programming examples
Executing SCPI commands RAPID! treats the SCPI system like a file. This means that
– the SCPI system needs to be opened first, before any communication may be
established.
– to communicate between RAPID! and SCPI, the standard file-related RAPID!
commands (like PRINT or INPUT) are used.
Example 1 This example opens the SCPI system as a communication port:
LET scpi = FREEFILE
OPEN “scpi” as #scpi
...
...
...
CLOSE #scpi
Example 2 After the SCPI system has been opened as a communication port, commands may
be sent, using the PRINT or OUTPUT command:
...
PRINT #scpi, “*RST”
OUTPUT #scpi, “:CONFigure:GSM:TYPE GSM9001800”
PRINT #scpi, “:MEASure:GSM:RFTX:ALL”
...
PRINT #scpi, “:FETCh:GSM:RFTX:ALL”
INPUT #scpi, rftx_result_all$ ...
The first command resets the 4400 to factory defaults using SCPI common
command
*RST.
The subsequent command configures the 4400 as a test set for GSM 900/1800.
The
:MEASure:RFTX:ALL command starts an internal procedure that will
continuously take all RFTX measurements in a row.
The current set of measurement results can be read out, using the
INPUT
command.