HP 8112A Operating, Programming And Servicing Manual page 111

50 mhz programmable pulse generator
Table of Contents

Advertisement

7 0
CLEAR SCREEN
8 0
9 0
CLEAR 712
100
110
120
! Learn String interrogate function CST (Current Setting)
130
140
DIM Setting$[l531
150
OUTPUT 712*"CST"
160
ENTER 712;Setting$
170
180
PRINT "The current setting of the
190
PRINT Setting$
200
PRINT
210
PRINT
220
230
! Interrogate Parameter Set IRCLO..S
240
250
OUTPUT 712;"IRCL 5"
260
ENTER 712;Setting$
270
!
280
PRINT "The current setting of location 5 is:"
290
PRINT Setting$
300
PRINT
310
PRINT
!
320
330
! Interrogate Error IERR
340
!
350
DIM A$[1001
360
OUTPUT 712;"WIDlMS"
370
PRINT "Width and slope error caused."
380
!
390
OUTPUT 712;"IERR"
400
ENTER 712;A$
410
!
420
PRINT "Errors read with IERR: ";A$
430
PRINT
440
450
460
470
! Interrogate Error commands (here shown:
480
490
OUTPUT 712*"IPER"
500
ENTER 712;Period$
I
510
520
PRINT "Response after IPER command: ";Period$
530
540
OUTPUT 712~"IHIL"
550
ENTER 712;High_level$
I
560
570
PRINT "Response after IHIL command: ";High,level$
! initialize interface and HP8112A
! clear status byte
! read setting from location 5
! cause width and slope error
! read error(s)
! correct error
Programming Examples 7-19

Advertisement

Table of Contents
loading

Table of Contents