Specifications
4-2
Transferring USER Patterns over HP-IB
Pattern Upload/Download Example
Introduction
This section explains some of the subtleties of transferring USER Patterns over GP-IB to
and from the Agilent 70843. A BASIC program example is used to illustrate these and
hints and tips are given for using other programming languages.
The program example is for separate Agilent 70843 Pattern Generators and Error Detec-
tors (Options UHG and UHH) but can be adapted for the Agilent 70843 Error Perfor-
mance Analyzer (Option UHF).
Pattern Upload/Download Example
This program reads the User Pattern Label (line 100) from the Pattern Generator, then the
pattern length (line 110). It then uploads the pattern data into an Array (line 120) after
removing the Header information. The program then re-constructs the Header (line 130)
and sends it to the Error Detector before downloading the pattern data from the array
(line 140).
10 REAL Upatbitlen,Maxupatbits,Upatbytelen,Byteno,Rowbyteno
20 INTEGER Bitsperbyte,Rowno,Ed,Pg
30 DIM Upatlabel$[14],Header$[10]
40 CLEAR SCREEN
50 Ed=717
60 Pg=718
70 Bitsperbyte=8
80 INTEGER Upat(720,720)
90 !
100 GOSUB Readupatlabel
110 GOSUB Readupatlength
120 GOSUB Uloadupat
130 GOSUB Makeblockhdr
140 GOSUB Dloadupat
150 STOP
160 Readupatlabel:!
170 OUTPUT Pg;“SOURCE1:PATT:UPAT0:LABEL?”
180 !WAIT 2
190 ENTER Pg;Upatlabel$
200 DISP Upatlabel$
210 WAIT 1
220 RETURN