Programming Examples
Agilent
8169A
Polarization Controller, Second Edition
95
Listing
Table 17
10
20
30
40
50
60
70
80
90
100
110
120
130
140
150
160
170
180
190
200
210
220
230
240
250
260
270
280
290
300
310
320
330
340
350
360
370
380
390
400
410
420
430
440
450
460
470
480
490
500
!------------------------------------------
!
! Programming Example 4
!
! Finding the Polarization Dependence
!
!------------------------------------------
!
! Definitions and Initializations
!
Pol=724
Mm=722
!
OUTPUT Mm;"*rst;*cls"
OUTPUT Pol;"*rst;*cls"
!
! Setup the instruments, with the output of the source connected
! to the input of the sensor and wait for the ENTER key to be
! pressed before continuing
!
CLEAR SCREEN
True=1
False=0
!
! Set the Wavelength and the averaging time for the sensor
!
OUTPUT Mm;"sour:pow:wave?"
ENTER Mm;Wl
OUTPUT Mm;"sens2:pow:wave ";Wl
OUTPUT Mm;"sens2:pow:atime 200ms"
!
! Switch on the source
!
OUTPUT Mm;"sour:pow:state on"
!
! Find the position of the polarizing filter, that allows the maximum
! power through
!
Angle=0
Inc=10
Maxward=False
OUTPUT Mm;"read2:power?"
ENTER Mm;Maxpow
REPEAT
Angle=Angle+Inc
OUTPUT Pol;"pos:pol ";Angle
OUTPUT Mm;"read2:power?"
ENTER Mm;Newpow
IF Newpow<Maxpow THEN
IF Maxward=True THEN