3
Programming
How to Use This Chapter
How you use this chapter depends upon how much you already know about
programming instruments and how complex your measurement requirements are.
Let's start by establishing your programming back- ground and then discuss the
type of measurements you want to perform.
With two minor exceptions, the only difference between programming the
NOTE
instrument using the GPIB interface and the RS-232 serial interface is the
manner in which you connect the instrument to the computer. These exceptions
are:
1 The instrument sends a command prompt over the RS-232 interface
2 When an error is detected (during the Self-Test or during operation),
New Users
What You Should Understand
As a new user, you must have some understanding of a high-level language, such
as BASIC or C, before you can use the command set defined in this guide to
control the instrument. (In
there are programming examples provided in BASIC, Microsoft QuickBASIC, and
Borland Turbo C.) However, whatever language you use, the command strings
that control the instrument remain the same.
128
(but not the GPIB) after receiving and executing each command.
the instrument automatically sends an error message (or messages)
over the RS-232 interface (error messages must be requested over the
GPIB). For additional information on error messages, see Appendix B.
Keysight 53147A/148A/149A Operating and Programming Guide
"Programming the Instrument for Remote
Operation",