Agilent Technologies 8590 TV Converter Box User Manual


 
2. Writing a Program
What You’ll Learn in This Chapter
......................
2-l
Writing Your First Program
..........................
2-2
Composing the Program
..........................
2-2
Program Example for the HP-IB Interface
..................
2-2
Program Example for the RS-232 Interface
.................
2-3
Modifying the Program
............................
2-4
Program Example for the HP-IB Interface
..................
2-4
Program Example for the RS-232 Interface
.................
2-5
Enhancing the Program with Variables
....................
2-6
Program Example for the HP-IB Interface
..................
2-6
Program Example for the RS-232 Interface
.................
2-7
Getting Information from the Spectrum Analyzer
...............
2-8
Program Example for the HP-IB Interface
..................
2-8
Program Example for the RS-232 Interface
.................
2-9
Programming Guidelines
...........................
2-10
3. Programming Topics
What You’ll Learn in This Chapter
......................
3-l
Controlling Trace Data with a Computer
...................
3-2
Reading Trace Data
............................
3-2
Program Example for the HP-IB Interface..................
3-2
Program Example for the RS-232 Interface .................
3-3
Saving Trace Data
..............................
3-4
Program Example for the RS-232 Interface .................
3-5
Reading Trace Data from a Computer Disk
..................
3-6
Program Example for the HP-IB Interface..................
3-6
Program Example for the RS-232 Interface .................
3-6
Saving and Recalling Instrument States
....................
3-7
Saving the Spectrum Analyzer’s State....................
3-7
Program Example for the HP-IB Interface..................
3-8
Program Example for the RS-232 Interface .................
3-10
Returning the Spectrum Analyzer to its Former State .............
3-12
Program Example for the HP-IB Interface..................
3-12
Program Example for the RS-232 Interface .................
3-13
Measuring Harmonic Distortion
........................
3-15
Program Example for the HP-IB Interface..................
3-15
Program
Example
for the RS-232
Interface
.................
3-18
Different Formats for Trace Data Transfers
..................
3-20
P Formatt
.................................
3-20
Example of Using the P Format
......................
3-21
B Format .................................
3-22
Example of Using the B Format
......................
3-22
A-Block Format
..............................
3-24
Example of Using the A-Block Format
...................
3-24
I-Block Format
...............................
3-25
Example of Using the I-Block Format
...................
3-25
M Formatt
.................................
3-26
Example of Using the M Format
.....................
3-27
Contents-2