SCPI Command Programming Examples
This section provides information on spectrum trace data and I/Q data via SCPI commands.
Spectrum Trace Data via SCPI
SCPI commands are sent to port 9001 of the instrument. Below is a simple example to capture spectrum trace data.
SENS:FREQ:START 88 MHz
SENS:FREQ:STOP 108 MHz
//Set sweep mode
SWEEP:MODE FFT
//Set RBW 30 kHz
BANDWIDTH 30 KHz
//Set Reference Level to -30 dBm
DISP:WIND:TRAC:Y:SCAL:RLEV -30
//Set to single sweep
INIT:CONT OFF
//Get trace amplitude data
TRACE:DATA? 1
//Get number of display points to calculate frequency array
DISP:POIN?