beautypg.com

EXFO FTB -5240S/5240BP Optical Spectrum Analyzer User Manual

Page 607

background image

SCPI Command Reference

OSA

601

Examples on Using the SCPI Commands

Performing an Averaging Acquisition for InBand
Noise Analysis

Command Sequence

Comments

parameters>
SENS:CORR:OFFS:MAGN 0.0 DB

Disable power offset.

SENS:WAV:OFFS -0.127 NM

Set wavelength offset.

SENS:WAV:STAR 1525.000 NM

Set sweep spectral range: 1525.000 nm to

1570.000 nm.

SENS:WAV:STOP 1570.000 NM

""

SENS:AVER:STAT ON

Enable trace averaging.

SENS:AVER:TYPE PMMH

Select specific trace averaging for InBand noise

measurement.

SENS:AVER:COUN 300

Set the number of sweep to average at 300.

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>