DGP01448AAA
6-00
6-2
GSS7725 Interference Generator User Manual
© Spirent Communications plc 2002-2017
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('192.168.5.30', 13100))
6.4 Remote command syntax
The GSS7725 controller accepts the standard command syntax for programming instruments
(SCPI). The full syntax of the commands should be used. Every command apart from “:STATus”
returns a standard command return value.
Table 6-2 GSS7725 full command syntax
Command
Syntax
:OUTput:STArt
Correct
:OUT:STA
Incorrect (bad)
Table 6-3 GSS7725 standard command return value
Value
Meaning
0
OK
-1
Malformed, impossible
-2
Cannot process due to current status
-3
Cannot be executed (e.g. the required data or hardware is missing)
All commands take a finite time to process. A command such as setting the IQ file can take a
number of seconds to process due to the conversion from the file sample rate to the required
output sample rate. The command “:STATus” can be used to retrieve the current state of the
controller. A return results of “PROCESSING” means that the last command is still being processed
and no more commands can be processed at this time.
6.5 Remote commands
Table 6-4 GSS7725 remote commands
Command
Description
:FREQ:CARRier <value>
Set carrier frequency
Where <value> is an integer in Hz
Range 50000000 to 2200000000
Default 1575420000
:FREQ:REFCLOck <value>
Set reference clock
Where <value> is an integer and one of:
0
Internal
1
External
Default 0 (internal)
:POWer:EthATTenuation
<value>
Set attenuation to modify power output of the IQ signal. Note that this
and the :OUTput:STOp commands are the only command that can
be sent while the GSS7725 is in the RUNNING state.
Where <value> is an integer in dB
Range 0 to 100
Where 0 is equivalent to -20 dB and 100 is equivalent to -120 dB
Default 0
:POWer:CALIBrate
Turn on calibration mode, this should be sent just prior to the
:OUTput:STArt command.