![Agilent Technologies HP E5574A User Manual Download Page 163](http://html1.mh-extra.com/html/agilent-technologies/hp-e5574a/hp-e5574a_user-manual_2868134163.webp)
161
HP-IB Programming
Programming Examples
90
! Definitions and Initializations
100
!
110
OLA=724
120
!
130
! The first 7 is to access the HP-IB card in the controller,
140
! the 24 is the HP-IB address of the OLA.
150
!
160
!
170
REAL Diff,Value1,Value2
180
!
190
CLEAR SCREEN
200
PRINT TABXY(5,10);"Programming Example 2, Measuring Power"
210
PRINT TABXY(5,13);"Value: dBm"
220
!
230
! Switch the source on
240
!
250
OUTPUT OLA;":SOURCE:POW:STAT ON"
260
!
270
! Activate Powermeter; set measurement unit to dBm
280
!
290
OUTPUT OLA;":SENS:FUNC MAIN"
300
OUTPUT OLA;":SENS:FUNC POW"
310
OUTPUT OLA;":SENS:POW:UNIT DBM"
320
!
330
! Take measurements until two consecutive results are identical
340
!
350
REPEAT
360
WAIT 1.0
370
OUTPUT OLA;":SENS1:DATA? POW"
380
ENTER OLA;Value2
390
PRINT TABXY(12,13);" "
400
PRINT TABXY(12,13);Value2
410
Diff=Value2-Value1
420
Value1=Value2
430
UNTIL Diff=0
440
!
450
! Store the present value as the reference power
460
!
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com