Remote Operation
Publication 31470-001, Rev C, November 2, 2017
3-3
3.1.2
Polling over GPIB
The GPIB supports parallel and serial polling. The example programs below show how to use the parallel and
serial poll capabilities of the 8650B to determine when a requested zeroing operation is completed.
3.1.2.1
Parallel Polling over GPIB
Ppoll_zero
! zero using parallel poll
PRINT entering parallel poll zero routine
PPOLL CONFIGURE 713;8
! configure response on bit zero
OUTPUT 713;CS AEZE
! clear status byte, zero channel A
State=0
! initialize variable
WHILE State 1
! stay here until zero done
State=PPOLL(7)
! read the poll
END WHILE PPOLL UNCONFIGURE 713
! cancel parallel poll mode
PRINT parallel zero done RETURN
3.1.2.2
Serial Polling over GPIB
Srq_zero:
! zero with an srq interrupt
PRINT entering SRQ interrupt zero routine
ON INTR 7 GOSUB Srq_interrupt
OUTPUT 713;CS
! clear status byte
ENABLE INTR 7;2
! enable srq interrupts
OUTPUT 713;@1;CHR$(2)
! enable srq handshake
OUTPUT 713;AEZE
! execute zero command
Flag=0
! test flag reset to false
WHILE Flag=0
! stay here until test flag set true
WAIT 1
PRINT Still inside while loop
END WHILE
PRINT SRQ interrupt zero done
RETURN
Srq_interrupt:
! SRQ interrupts jump here
PRINT an SRQ interrupt has occurred
Example
:OUTPUT 713;CS
! clear status byte
Flag=1
! set control flag true
RETURN
Summary of Contents for 8650B Series
Page 3: ...Series 8650B Universal Power Meters Publication 31470 001 Rev C November 2 2017 iii ...
Page 18: ......
Page 32: ......
Page 78: ......
Page 236: ......
Page 244: ......
Page 258: ......
Page 267: ...Publication 31470 001 Rev C November 2 2017 Last page of the document ...