Programming Overview; Example Pattern Generator Program - Agilent Technologies 16522A User Manual

200-m vectors/s pattern generator
Table of Contents

Advertisement

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 appropriate module
set program parameters
define a pattern generator program
run the pattern generator program
The following example program generates a pattern using two of the output
pods of the master card:
10 OUTPUT XXX;":SELECT 1"
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.
3–3

Advertisement

Table of Contents
loading

Table of Contents