Typical Application Programs
Publication 31470-001, Rev C, November 2, 2017
A-1
Appendix A
Typical Applications Programs
A.1
Introduction
This section provides examples of programs for controlling the Series 8650B remotely over the GPIB.
A.2
Continuous Data Reading
OUTPUT 713;TR3
! set freerun mode
Main:
ENTER 713;Reading
! make reading
PRINT Reading
GO TO MAIN
A.3
Remote Calibration of a Sensor
OUTPUT 713;PR
! preset the instrument to a known state
CH 1 EN
! selects line 1 for subsequent settings
OUTPUT 713;LG
! set Log units (dB or dBm)
OUTPUT 713;AP
! Measure sensor A
Main:
! start of measurement loop
OUTPUT 713;TR2
! Trigger full measurement with settling
ENTER 713;Reading
! Read the data over the bus into variable N
PRINT Reading
GO TO Main
Calibrate
! calibration routine
ON INTR 7 GOSUB Srq_interrupt
! setup serial poll interrupt jump location
ENABLE INTR 7;2
! enable SRQ interrupts
OUTPUT 713;*SRE002
! set service request mask to 2
OUTPUT 713;CS
! clear status byte
OUTPUT 713;CLEN
! start calibration
Flag=0
! reset control flag
WHILE Flag=0
! wait while calibrating
END WHILE
RETURN
Srq_interrupt:
! SRQ interrupts jump here
IF BIT(State, 1) THEN
PRINT GOOD CAL
ELSE
IF BIT(State, #) THEN
PRINT BAD CAL
ENDIF
ENDIF
OUTPUT 713;CS
! clear status byte
Flag=1
! set control flag true
RETURN
Содержание 8650B Series
Страница 3: ...Series 8650B Universal Power Meters Publication 31470 001 Rev C November 2 2017 iii ...
Страница 18: ......
Страница 32: ......
Страница 78: ......
Страница 236: ......
Страница 244: ......
Страница 258: ......
Страница 263: ...Menu Structure Publication 31470 001 Rev C November 2 2017 D 3 Figure D 3 Modulation Sensor B Setup Menu Structure ...
Страница 265: ...Menu Stucture Publication 31470 001 Rev C November 2 2017 Page D 5 Figure D 4 Meter Setup Menu Structure ...
Страница 267: ...Publication 31470 001 Rev C November 2 2017 Last page of the document ...