Remote Operation

Example Programs

Example 8. Total power measurement

Description

This program demonstrates the total power function. The ASE broadband

 

noise power of an EDFA source is measured. Two sweeps are taken, one of the

 

entire trace and then another of just the noise hump. The total power of the

 

two different traces are displayed.

 

Program

OUTPUT 723;”*rst”

! Preset the instrument

 

OUTPUT 723;”disp:wind:trac:all:scal:auto”

! Perform automeasure

 

!

 

 

OUTPUT 723;”sens:wav:span 10nm”

! Set the span

 

OUTPUT 723;”sens:bwid:res 5nm”

! Set resolution bandwidth

 

!

 

 

OUTPUT 723;”init:imm”

! Take a single sweep

 

!

 

 

OUTPUT 723;”calc1:tpow:stat 1”

! Turn the tpower state on

 

OUTPUT 723;”calc1:tpow:data?”

! Query the total power

 

!

 

 

ENTER 723;Tpower

 

 

PRINT “Entire Trace:”;Tpower

! Print the total power

 

PRINT

 

 

!

 

 

! Select portion of trace

 

 

OUTPUT 723;”calc1:tpow:iran:low 1547.6nm”

! Set the upper & lower

 

OUTPUT 723;”calc1:tpow:iran:upp 1552.6nm”

! total power limits for the calculated range.

 

!

 

 

OUTPUT 723;”calc1:tpow:data?”

! Query the total power

 

!

 

 

ENTER 723;Tpower

 

 

PRINT “Portion of trace:”;Tpower

! Print the total power

 

!

 

 

LOCAL 723

! Return to local operation

 

!

 

 

END

 

4-28