
Remote Commands for Analog Demodulation Measurements
R&S
®
FSW-K7
343
User Manual 1173.9240.02 ─ 17
//Reset the instrument
FREQ:CENT 500 MHz
//Set the center frequency to 500 MHz
DISP:TRAC:Y:SCAL:RLEV 0
//Set the reference level to 0 dBm
//---------- Activating an Analog Demod measurement channel -----------
INST:CRE:NEW ADEM,'FMDemodulation'
//Activate an Analog Demodulation measurement channel named "FMDemodulation"
//--------- Configuring data acquisition ------------------
ADEM:MTIM 1ms
//Set the measurement time to 1 ms (=10 periods)
SENS:ADJ:SCAL:Y:AUTO ON
//Optimize the scaling of the y-axis for the current measurement (continuously)
BAND:DEM 400 kHz
//Set the demodulation bandwidth to 400 kHz
TRIG:SOUR FM
//Use (offline) FM trigger
TRIG:LEV:FM 500MHz
//Trigger when signal reaches 500 MHz
//----------- Configuring the result display --------------------
LAY:ADD:WIND? '1',BEL,'XTIM:FM:AFSP'
//Add an FM Spectrum result display below FM Time Domain
ADEM:FM:AFSP WRIT,AVER,OFF,OFF,OFF,OFF
//Defines two traces in the FM Spectrum: 1: Clear/write, 2: average
ADEM:SET 8MHz,32000,FM,POS,-500,30
//Set analog demodulator to execute 30 sweeps with 32000 samples each
//at a sample rate of 8 MHz; use FM trigger, trigger on positive slope
//with a pretrigger offset of 500 samples
//--------------Performing the Measurement-----
INIT:CONT OFF
//Stop continuous sweep
INIT;*WAI
//Start a new measurement with 30 sweeps and wait for the end
//---------------Retrieving Results-------------
CALC:MARK:FUNC:ADEM:CARR?
//Queries the carrier power
//Result: -10.37 [dBm]
CALC2:MARK:FUNC:ADEM:SIN:RES?
//Queries the signal-to-noise-and-distortion ratio from the FM Spectrum
//Result: 65.026 [dB]
Programming Example