Agilent Technologies HP E5574A User Manual page 163

Optical loss analyzer
Table of Contents

Advertisement

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
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
HP-IB Programming
Programming Examples
! Definitions and Initializations
!
OLA=724
!
! The first 7 is to access the HP-IB card in the controller,
! the 24 is the HP-IB address of the OLA.
!
!
REAL Diff,Value1,Value2
!
CLEAR SCREEN
PRINT TABXY(5,10);"Programming Example 2, Measuring Power"
PRINT TABXY(5,13);"Value:
!
! Switch the source on
!
OUTPUT OLA;":SOURCE:POW:STAT ON"
!
! Activate Powermeter; set measurement unit to dBm
!
OUTPUT OLA;":SENS:FUNC MAIN"
OUTPUT OLA;":SENS:FUNC POW"
OUTPUT OLA;":SENS:POW:UNIT DBM"
!
! Take measurements until two consecutive results are identical
!
REPEAT
WAIT 1.0
OUTPUT OLA;":SENS1:DATA? POW"
ENTER OLA;Value2
PRINT TABXY(12,13);"
PRINT TABXY(12,13);Value2
Diff=Value2-Value1
Value1=Value2
UNTIL Diff=0
!
! Store the present value as the reference power
!
161
dBm"
"

Advertisement

Table of Contents
loading

Table of Contents