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


 
4-17
Remote Operation
Example Programs
Example 1. Initialization and a simple measurement
Description
This program provides the basic building block for beginning development of a
measurement routine. The
*RST
common command resets the instrument to
predetermined settings to provide a common starting point. The automeasure
function locates the largest signal in the spectrum and optimizes the display of
the signal. The maximum signal is located and a marker placed on the signal.
This signal is then used for the autoalign function. Autoalign aligns the inter-
nal components of the OSA to compensate for any effects of handling, temper-
ature, and humidity. This operation should be performed whenever the
instrument is moved or the environmental conditions change. It should be per-
formed after the instrument is at operating temperature. Periodic use of
autoalign assures optimum performance. The program sets the start and stop
wavelength and the amplitude sensitivity.
Program
PRINT Single Measurement Example
OUTPUT 723;disp:wind:text:data Single Measurement’”
!
!*********************** 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:star 1314nm ! Set start wavelength
OUTPUT 723;sens:wav:stop 1316nm ! Set stop wavelength
OUTPUT 723;sens:pow:dc:rang:low -70dbm ! Set ampl sensitivity
OUTPUT 723;sens:bwid:res 0.1 nm ! Set the res bandwidth
OUTPUT 723;init:imm ! Take a sweep
OUTPUT 723;calc:mark1:max ! Locate max signal
OUTPUT 723;calc:mark1:scen ! Marker to center
OUTPUT 723;init:imm ! Take a sweep
!
LOCAL 723 ! Return to local operation
END
book.book Page 17 Monday, January 31, 2000 10:34 AM