beautypg.com

Performing an averaging acquisition – EXFO FTB -5240S/5240BP Optical Spectrum Analyzer User Manual

Page 606

background image

SCPI Command Reference

600

FTB-5240S/S-P/BP

Examples on Using the SCPI Commands

Performing an Averaging Acquisition

Command Sequence

Comments

parameters>
SENS:CORR:OFFS:MAGN 5.0 DB

Set power offset.

SENS:WAV:OFFS 0.0 NM

Disable wavelength offset.

SENS:WAV:STAR MIN

Set sweep full spectral range using wavelength

commands.

SENS:WAV:STOP MAX

""

SENS:AVER:STAT ON

Enable trace averaging.

SENS:AVER:TYPE SCAL

Select SCALAR averaging type.

SENS:AVER:COUN 8

Set the number of sweep to average at 8.

TRIG:SEQ:SOUR IMM

Set sweep trigger event source to immediate.

STAT?

Test instrument state is idle. Poll STAT? until the

returned state is READY.

INIT:IMM

Start sweep acquisition.

STAT:OPER:BIT8:COND?

Wait for the acquisition to be completed. Poll

bit 8 until the returned value is 0.

results>