Description
Program
Example 5. Maximum and minimum values over time
This program locates the largest signal using automeasure, and adjusts the
center wavelength, span, and sensitivity settings. Trace B is then viewed and
updated and set to maximum hold. Trace C is then viewed, updated, and set to
minimum hold. Signal variations with time can now be monitored.
PRINT "OSA Min/Max Hold Example"
OUTPUT 723;"disp:wind:text:data 'OSA Min/Max Hold Example'"
!
PRINT
OUTPUT 723;"*rst"
PRINT "Presetting the instrument"
!
PRINT
OUTPUT 723;"disp:wind:trac:all:scal:auto"
PRINT "Performing Automeasure"
!
PRINT
OUTPUT 723;"cal:alig:mark1"
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"
!
! Set up and display the signal
!
OUTPUT 723;"sens:wav:cent 1315nm"
OUTPUT 723;"sens:wav:span 20nm"
OUTPUT 723;"sens:pow:dc:rang:low -65dBm"
!
! Update and view trace B and set it to max hold
!
OUTPUT 723;"disp:wind:trac:stat trB, on"
OUTPUT 723;"trac:feed:cont trB, Alw"
OUTPUT 723;"calc2:max:stat on"
!
! Update and view trace C and set it to min hold
!
OUTPUT 723;"disp:wind:trac:stat trC, on"
OUTPUT 723;"trac:feed:cont trC, Alw"
OUTPUT 723;"calc3:min:stat on"
!
OUTPUT 723;"init:cont on"
!
LOCAL 723
END
Remote Operation
Example Programs
! Preset the instrument
! Automeasure
! Perform an autoalignment
! Set the center wavelength
! Set the wavelength span
! Set the sensitivity
! View trace B
! Update trace B
! Set trace B to max hold
! View trace C
! Update trace C
! Set trace C to min hold
! Turn continuous sweep on
! Return control to local
4-23