HP 8112A Operating, Programming And Servicing Manual page 106

50 mhz programmable pulse generator
Table of Contents

Advertisement

! Name of this program: ERROR-DEMO
10
2 0
3 0
! This program demonstrates how to determine which error
! are set in the HP8112A's Status Byte. Also it is shown how to
4 0
5 0
! get a more detailed description of an error with the
! "Interrogate Error" (IERR) command. Both functions are performed
6 0
7 0
! in the subroutine Print-errors.
8 0
!
CLEAR SCREEN
9 0
100
!
110
CLEAR 712
120
!
130
140
PRINT "Now Period is 1 ms, Width is set to 10 ms."
150
PRINT "This causes width and slope error (Width>Period)."
160
170
!
OUTPUT 712;"WIDlOMS"
180
190
!
200
WAIT .I ! HP8112A needs time to execute a command and update the
210
220
230
240
!
250
DISP "Pausing, press Continue to continue."
260
PAUSE
270
CLEAR SCREEN
280
!
290
PRINT "Now Width is set to 500 us. This removes the cause for the errors."
PRINT II,,,,--,,,-,,,,--,,,,,_,,,,,_,,,,,,_,,,----------------------------
300
310
!
320
OUTPUT 712~"WID500US"
330
!
340
WAIT .I ! HP8112A needs time to execute a command and update the
350
360
!
370
380
!
390
PRINT
400
PRINT "End of the program ERROR,DEMO."
410
LOCAL 712
420
STOP
430
440 Print-errors:! prints the errors set in the Status Byte and uses the
450
460 !
470
WAIT 2 ! not necessary
480 !
490
500
PRINT "Value of the Status Byte :
7-14 Programming Examples
! intialize interface and HP8112A
! set width to 10 ms (causes width error>
! Status Byte.
!
! Status Byte.
!
! command to get more detailed descriptions of the errors.
! read the status byte
II

Advertisement

Table of Contents
loading

Table of Contents