Performing a continuous acquisition – EXFO FTB -5240S/5240BP Optical Spectrum Analyzer User Manual
Page 608

SCPI Command Reference
602
FTB-5240S/S-P/BP
Examples on Using the SCPI Commands
Performing a Continuous Acquisition
Command Sequence
Comments
<Add commands to configure analysis
parameters>
SENS:CORR:OFFS:MAGN 0.0 DB
Disable power offset.
SENS:WAV:OFFS 0.0 NM
Disable wavelength offset.
SENS:FREQ:STAR 190.9506 THZ
Set sweep frequency range.
SENS:FREQ:STOP 196.5852 THZ
""
SENS:AVER:STAT OFF
Disable trace averaging.
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:CONT ON
Start sweep acquisition loop.
…
INIT:CONT OFF
Stop sweep acquisition loop.
STAT:OPER:BIT8:COND?
Wait for the acquisition to be completed. Poll
bit 8 until the returned value is 0.
<Add commands to retrieve analysis
results>