Agilent Technologies 8560E User Manual page 325

Agilent technologies 8560 e-series and ec-series spectrum analyzers
Table of Contents

Advertisement

No-Format Method
This is the simplest method for creating a title. No format is used; you
simply enclose the title within string delimiters. A list of delimiters
appears below. Refer to Example 1.
E
1
XAMPLE
10
OUTPUT 718;"TITLE@This is a title@;"
20
END
In this example, the "@" symbols are the string delimiters. Inside the
delimiters is the title. A title can be up to 32 characters in length. On
the spectrum analyzer display, a title appears on up to two lines of 16
characters each. The title can be made up of any valid, printing ASCII
characters (line feed and carriage return are not recommended).
The string delimiters are: ! $ % &' / : = @ \ | < > {}
Format Methods
The method described above allows you to enter a title directly. Using
formats provides greater flexibility. You can use data that has been
previously stored in a string as the title. This data can be in ASCII
characters, or even in binary or decimal equivalents. The two formats,
A-block and I-block, are described below.
Making a Title in A-Block Format
A-block format allows you to use a string of data as a title. A-block
format also requires that this string be of a known length; the length is
sent to the spectrum analyzer. To place the title in a string, see
Example 2.
E
2
XAMPLE
10
DIM A$[15]
20
A$="THIS IS A TITLE"
A-block format also requires that you send the length of the title, in
bytes. When using Hewlett-Packard BASIC (HPBASIC), this task is
easily accomplished. See Example 3.
E
3
XAMPLE
10
DIM A$[15]
20
A$="THIS IS A TITLE"
30
OUTPUT 718 USING "#,K,W,K";"TITLE#A",LEN(A$),A$,";"
40
END
Chapter 5
Programming
Creating Screen Titles
325

Advertisement

Table of Contents
loading

Table of Contents