HP 8112A Operating, Programming And Servicing Manual page 103

50 mhz programmable pulse generator
Table of Contents

Advertisement

IO
! Name of this program: SPOLL-2
2 0
3 0
! This program demonstrates that the HP8112A's
4 0
! SRq is cleared after SPOLL.
5 0
!
6 0
CLEAR SCREEN
7 0
CLEAR 712
8 0
9 0
!
100
!
110
120
PRINT "SPOLL before the syntax error
130
PRINT
140
PRINT "XXX is output. This will cause a syntax error."
150
OUTPUT 712;"XXX"
160
WAIT .I
! give HP8112A time to receive "XXX" and update the Status Byte
170
!
180
190
PRINT "1st SPOLL after syntax error = ";A
200
WAIT .I
210
220
PRINT "2nd SPOLL after syntax error = ";A
230
PRINT
240
WAIT 2
250
260
PRINT "SPOLL after waiting 2 seconds =
270
PRINT
280
!
290
PRINT "End of the program SPOLL,2."
300
LOCAL 712
310
END
Without the synchronization with the WAIT command (line 230),
the SPOLL would be conducted whilst "XXX" is being parsed. At
this moment there is neither a syntax error or SRQ active. The
resultant SPOLL would be 128, indicating that the HP 8112A
command buffer is not empty. (See Chapter 6 Error, fault and status
reporting.
! Initialize Inteface and HP8112A
! clear status byte
! Cause a syntax error.
-m-e---
Programming Examples 7-11

Advertisement

Table of Contents
loading

Table of Contents