Agilent Technologies 1670G Printer Accessories User Manual


 
Programming Overview
This section introduces you to the basic command structure used to
program the pattern generator.
Example Pattern Generator Program
A typical pattern generator program includes the following tasks:
select the pattern generator
set program parameters
define a pattern generator program
run the pattern generator program
The following example program generates a pattern using two of output pods:
10 OUTPUT XXX;":SELECT 2"
20 OUTPUT XXX;":FORMAT:REMOVE ALL"
30 OUTPUT XXX;":FORMAT:LABEL ’A’,POSITIVE,127,0"
40 OUTPUT XXX;":FORMAT:LABEL ’B’,POSITIVE,0,255"
50 OUTPUT XXX;":SEQ:REMOVE ALL"
60 OUTPUT XXX;":SEQ:INSERT 0,NOOP,’#H7F’,’#HFF’"
70 OUTPUT XXX;":SEQ:INSERT 4,NOOP,’#H7F’,’#HFF’"
80 OUTPUT XXX;":RMODE REPETITIVE"
90 OUTPUT XXX;":START"
100 END
The three Xs (XXX) after the OUTPUT statement in the above example refer to
the device address required for programming over either GPIB or RS-232-C.
Refer to your controller manual and programming language reference manual
for information on initializing the interface.
Program Comments
Line 10 selects the pattern generator
Line 20 removes all labels previously assigned
37–3