The Viavi 8800SX radio test set is controlled remotely with SCPI commands. TestFlow's instrument library holds 180 commands for it, 58 of them queries that read values or state, grouped below by subsystem with their arguments. It is the same library TestFlow's AI agent uses to drive the 8800SX on a real bench.
Commands
180
Queries
58
Subsystems
28
Models covered
1
Run this on your bench
Describe the test; TestFlow's agent uses this command set to drive your Viavi 8800SX and writes the report from the measured results.
With PyVISA, any VISA backend, and the instrument on USB, LAN or GPIB, this opens a session, identifies the instrument, sends one setting, and reads one value. Every command in it comes from the reference below. For a full walkthrough, see the PyVISA tutorial and the SCPI command cheat sheet.
import pyvisa
rm = pyvisa.ResourceManager()
print(rm.list_resources()) # find the Viavi 8800SX's VISA address
# Paste the address of your Viavi 8800SX (USB, LAN or GPIB).
inst = rm.open_resource("PASTE_VISA_ADDRESS_HERE")
inst.timeout = 5000 # ms
print(inst.query("*IDN?")) # identify the instrument
inst.write(":devmod:range:fm:auto") # Set FM Range Auto
print(inst.query(":gen:freq?")) # Read Generator Frequency
inst.close()
Run this on your bench
Describe the test; TestFlow's agent uses this command set to drive your Viavi 8800SX and writes the report from the measured results.
Describe the test in a sentence, for example “set fm range auto on the 8800SX, then read generator frequency and log it against a limit”. TestFlow's agent builds the steps from this command library, runs them on your bench through the TestFlow desktop app, and writes the report from the measured values. See AI test automation for lab instruments for how that works and where it stops.
Read Audio Level. Returns the audio level meter value.
None
:alm:reading:avg?
Read Audio Level Average. Returns the averaged audio level meter value.
None
:alm:setrelative
Set Audio Level Relative. Sets the audio level relative value and changes units to dBr.
None
SCOPE subsystem (9)
Command
What it does
Arguments
:scope:state 1
Turn On Scope. Sets the oscilloscope state to 1 (enable / live trace).
None
:scope:state 0
Turn Off Scope. Sets the oscilloscope state to 0 (disable / freeze trace).
None
:scope:source <Source>
Set Scope Source. Sets the oscilloscope input source (0 = DVM, 1 = Demod, 2 = Aud In).
Number: 0,1,2
:scope:coupling <Coupling>
Set Scope Coupling. Sets the oscilloscope input coupling (0 = AC, 1 = DC, 2 = GND).
Number: 0,1,2
:scope:horizontal:scale <Index>
Set Scope Horizontal Scale. Sets the oscilloscope horizontal scale index (0 = 20 us/div, 1 = 50 us/div, 2 = 0.1 ms/div ...).
Number
:scope:scale:vertical <Index>
Set Scope Vertical Scale. Sets the oscilloscope vertical scale index (see manual table).
Number
:scope:trigger:mode <Mode>
Set Scope Trigger Mode. Sets the oscilloscope trigger mode (0 = Normal, 1 = Auto).
Number: 0,1
:scope:trigger:edge <Edge>
Set Scope Trigger Edge. Sets the oscilloscope trigger edge (0 = Fall, 1 = Rise).
Number: 0,1
:scope:trace:val?
Read Scope Trace. Returns the oscilloscope trace values.
None
SIGNALING subsystem (9)
Command
What it does
Arguments
:signaling:dtmf:encode:message <Message>
Set DTMF Encode Message. Sets the DTMF encode message (up to 20 valid DTMF tones).
Text
:signaling:dtmf:encode:state 1
Turn On DTMF Encode. Turns the DTMF encoder on.
None
:signaling:dtmf:encode:state 0
Turn Off DTMF Encode. Turns the DTMF encoder off.
None
:signaling:dtmf:decode:state 1
Turn On DTMF Decode. Turns the DTMF decoder on.
None
:signaling:dtmf:decode:state 0
Turn Off DTMF Decode. Turns the DTMF decoder off.
None
:signaling:dtmf:decode:lastmessage?
Read DTMF Last Message. Returns the last complete DTMF message decoded.
None
:signaling:dcs:setcode <Code>
Set DCS Encode Code. Sets the DCS encode code (code value in decimal, e.g. 19 for DCS 023).
Number
:signaling:dcs:start
Start DCS Encode. Starts the DCS encoder.
None
:signaling:dcs:disable
Stop DCS Encode. Disables the DCS encoder immediately.
None
RFERR subsystem (7)
Command
What it does
Arguments
:rferr:state 1
Turn On RF Error Meter. Turns the RF error counter on.
None
:rferr:state 0
Turn Off RF Error Meter. Turns the RF error counter off.
None
:rferr:relative <Mode>
Set RF Error Mode. Sets RF error counting to absolute or relative to the receiver frequency (0 = Absolute, 1 = Relative).
Number: 0,1
:rferr:average <Count>
Set RF Error Average. Sets the number of RF error readings to average (1 to 99).
Number: 1,99
:rferr:reading:val?
Read RF Error. Returns the RF error counter reading with no statistics in kHz.
None
:rferr:reading:avg?
Read RF Error Average. Returns the averaged RF error counter reading in kHz.
None
:rferr:reading:clear
Clear RF Error Readings. Clears the RF error counter reading.
None
SETUP subsystem (7)
Command
What it does
Arguments
:setup:configuration <Config>
Set Configuration. Sets the test set configuration (0 = LMR, 1 = PTC, 2 = P25 Phase 2).
Number: 0,1,2
:setup:version:powerpc?
Read Software Version. Returns the PPC application code version number.
None
:setup:version:fpga?
Read FPGA Version. Returns the FPGA version number.
None
:setup:date:current?
Read Current Date. Returns the current date.
None
:setup:time:current?
Read Current Time. Returns the current time.
None
:setup:date:cal_due?
Read Calibration Due Date. Returns the next calibration date.
None
:setup:temp:internal?
Read Internal Temperature. Returns the FPGA temperature in degrees.
None
DEMOD subsystem (5)
Command
What it does
Arguments
:demod:state 1
Turn On Demod. Turns the analog demodulator on.
None
:demod:state 0
Turn Off Demod. Turns the analog demodulator off.
None
:demod:type <Type>
Set Demod Type. Sets the demodulation setting index (0 = FM 5 kHz, 1 = FM 6.25 kHz, 2 = FM 8.33 kHz, 3 = FM 10 kHz, 4 = FM 12.5 kHz, 5 = FM 25 kHz, 6 = FM 30 kHz; further AM entries per manual).
Number
:demod:type?
Read Demod Type. Returns the demodulation setting index.
None
:demod:afbw <Filter>
Set Demod AF Bandwidth. Sets the demod AF bandwidth filter index (0 = None, 1 = LP 300 Hz, 2 = LP 3 kHz, 3 = LP 5 kHz, 4 = LP 15 kHz, 5 = C-MESS, 6 = CCITT, 7 = HP 300 Hz, 8+ = band-pass per manual).
Number
SINAD subsystem (5)
Command
What it does
Arguments
:sinad:demod:average <Count>
Set SINAD Average. Sets the number of SINAD readings to average (1 to 99).
Number: 1,99
:sinad:demod:reading:val?
Read SINAD. Returns the SINAD meter value on the demod input in dB.
None
:sinad:demod:reading:avg?
Read SINAD Average. Returns the averaged SINAD reading in dB.
None
:sinad:demod:reading:clear
Clear SINAD Readings. Clears the SINAD meter readings.
None
:sinad:range:auto
Set SINAD Range Auto. Sets the SINAD meter autorange to Auto.
None
DISTORTION subsystem (5)
Command
What it does
Arguments
:distortion:notch <Freq>
Set Distortion Notch. Sets the distortion meter notch frequency in Hz.
Number
:distortion:demod:reading:val?
Read Distortion Demod. Returns the distortion reading on the demod input in percent.
None
:distortion:demod:reading:avg?
Read Distortion Demod Average. Returns the averaged distortion reading on the demod input in percent.
None
:distortion:ext_aud_in:reading:val?
Read Distortion Ext Audio. Returns the distortion reading on the external audio input in percent.
Set Preamp Mode. Sets the receiver input preamp state (0 = Auto, 1 = OFF, 2 = ON).
Number: 0,1,2
:agc:tos <Level>
Set AGC Top Of Scale. Sets the top of scale for manual AGC mode in dBm (-90 to 10 dBm).
Number: -90,10
RSSI subsystem (4)
Command
What it does
Arguments
:rssi:average <Count>
Set RSSI Average. Sets the number of RSSI readings to average (1 to 99).
Number: 1,99
:rssi:reading:val?
Read RSSI. Returns the RSSI reading with no statistics in dBm.
None
:rssi:reading:avg?
Read RSSI Average. Returns the averaged RSSI reading in dBm.
None
:rssi:reading:clear
Clear RSSI Readings. Clears the RSSI readings.
None
SNR subsystem (4)
Command
What it does
Arguments
:snr:enable 1
Turn On SNR Meter. Turns the SNR measurement on.
None
:snr:enable 0
Turn Off SNR Meter. Turns the SNR measurement off.
None
:snr:meter:type <Type>
Set SNR Type. Sets the SNR measurement type (0 = Audio SNR, 1 = Demod SNR).
Number: 0,1
:snr:meter:stat?
Read SNR. Returns the SNR measurement in dB.
None
SPEAKER subsystem (4)
Command
What it does
Arguments
:speaker:state 1
Turn On Speaker. Turns the speaker output on (1 = ON).
None
:speaker:state 2
Turn Off Speaker. Turns the speaker output off (2 = OFF).
None
:speaker:volume <Volume>
Set Speaker Volume. Sets the speaker volume (0 to 100).
Number: 0,100
:speaker:source <Source>
Set Speaker Source. Sets the speaker source (0 = Ext Audio In, 1 = Demod, 2 = Modulation, 3 = FGen).
Number: 0,1,2,3
FREQFIND subsystem (4)
Command
What it does
Arguments
:freqfind:start <Freq>
Set Freq Find Start. Sets the frequency-find start frequency in MHz.
Number
:freqfind:stop <Freq>
Set Freq Find Stop. Sets the frequency-find stop frequency in MHz.
Number
:freqfind:threshold <Level>
Set Freq Find Threshold. Sets the frequency-find threshold in dBm.
Number
:freqfind:peak?
Read Freq Find Peak. Returns the next tune frequency found.
None
EXTAUDOUT subsystem (3)
Command
What it does
Arguments
:extaudout:source <Source>
Set Ext Audio Out Source. Sets the external audio output source (0 = Ext Audio In, 1 = Demod, 2 = Modulation, 3 = FGen).
Number: 0,1,2,3
:extaudout:state 1
Turn On Ext Audio Out. Turns the external audio output on.
None
:extaudout:state 0
Turn Off Ext Audio Out. Turns the external audio output off.
None
OPTIONS subsystem (3)
Command
What it does
Arguments
:options:model?
Read Model. Returns the model number.
None
:options:serial?
Read Serial Number. Returns the 10 digit serial number.
None
:options:man?
Read Manufacturer. Returns the manufacturer name.
None
EXTAUDIN subsystem (2)
Command
What it does
Arguments
:extaudin:state 1
Turn On Ext Audio In. Turns the external audio input on.
None
:extaudin:state 0
Turn Off Ext Audio In. Turns the external audio input off.
None
NORMALIZE subsystem (2)
Command
What it does
Arguments
:normalize:run:state
Run Normalize. Activates the normalize procedure.
None
:normalize:run:status?
Read Normalize Status. Returns the normalize status (0 = Stopped, 1 = Running).
None
Other subsystem (1)
Command
What it does
Arguments
<Output Variable>=<Equation>
Math. Variable equals an equation like (${Var_name}= ${Var_name}/2)
Number; Text
WAIT subsystem (1)
Command
What it does
Arguments
wait(<ms>)
Wait. Waits for number of milliseconds
Number
SAVE subsystem (1)
Command
What it does
Arguments
save2var <Variable_name>
Save2Variable. Saves last measurement to a variable
Text
Where these commands come from
This reference is generated from TestFlow's instrument library, which is drafted from Viavi's programming documentation for the 8800SX and checked when the agent runs it. Ranges, timing, and option-dependent commands are defined by Viavi's programming manual: check it before you rely on an edge case. Last updated September 27, 2026.
Frequently asked questions
Does the Viavi 8800SX support SCPI remote control?
Yes. The Viavi 8800SX accepts SCPI commands over its remote interfaces. TestFlow's instrument library holds 180 SCPI commands for it: 58 queries that read values or state, and 122 settings and actions.
How do I control the Viavi 8800SX from Python?
Install PyVISA and a VISA backend, find the instrument's address with ResourceManager().list_resources(), open it, then send commands with write() and read values with query(). The example on this page sends *IDN?, :devmod:range:fm:auto and :gen:freq?.
Which command reads a value from the Viavi 8800SX?
:gen:freq? (read generator frequency). Returns the RF generator frequency in MHz. The full list of queries is in the command reference on this page, grouped by subsystem.
Can I automate the Viavi 8800SX without writing code?
Yes. TestFlow is an AI agent for electronics testing: you describe the test, and it builds the automation from this command library, runs it on the Viavi 8800SX through the TestFlow desktop app, and writes the report from the measured results.
Your next test, automated today
Describe the test. TestFlow builds the workflow, runs it on your instruments, and writes the report. See it on a bench like yours.