HP (Hewlett-Packard) 86140A TV Cables User Manual


 
4-26
Remote Operation
Example Programs
Example 7. Trace normalization
Description
This program demonstrates trace normalization. Normalization is used to
observe changes to a displayed response. For example, run the program and
then bend the fiber to observe the change in signal level across the spectrum.
Trace C displays the difference between trace A and trace B.
Program
PRINT OSA Normalization Example
OUTPUT 723;disp:wind:text:data OSA Normalization Example’”
!
!*********************** Initialization Routine ******************
!
PRINT
OUTPUT 723;*rst ! Preset the instrument
PRINT Presetting the instrument
!
PRINT
OUTPUT 723;disp:wind:trac:all:scal:auto ! Automeasure
PRINT Performing Automeasure
!
PRINT
OUTPUT 723;cal:alig:mark1 ! Perform an autoalignment
PRINT Performing Autoalign
!
!******************************************************************
!
PRINT
! Next line is the operation complete query used so that the text is not printed
! until after the Autoalign is complete
OUTPUT 723;*opc?
ENTER 723;Dum
PRINT ... measurement begins
!
OUTPUT 723;Sens:Wav:Cent 1315 nm
OUTPUT 723;Sense:bwid:res 10nm ! Fix resolution bw
!
OUTPUT 723;Init:Imm
!
! Trace A is the active trace
OUTPUT 723;Disp:Wind:Trac:Stat TrA,On ! Turn on Trace A
OUTPUT 723;Trac:Feed:Cont TrA, Alw
!
! Trace B is the reference trace
OUTPUT 723;Disp:Wind:Trac:Stat TrB,On ! Turn on Trace B
OUTPUT 723;Trac:Feed:Cont TrB, Alw
!
! Trace C displays the difference between A & B
OUTPUT 723;Disp:Wind:Trac:Stat TrC,On ! Turn on Trace C
OUTPUT 723;Trac:Feed:Cont TrC, Alw
!
OUTPUT 723;Trac:Feed:Cont TrB,Nev ! Stop updating B
book.book Page 26 Monday, January 31, 2000 10:34 AM