Contents
Chapter 1
Introduction to Programming an Instrument
Introduction ..............................................
..l-
1
Programming Syntax
........................................
l-2
Talking
to the Instrument
..................................
l-2
Instruction Syntax
.........................................
l-2
Output Command
.........................................
l-3
Device Address
...........................................
1-3
Instructions
..............................................
1-3
Instruction Header ........................................
1-3
White Space.
.............................................
1-4
Instruction Parameters
.....................................
l-4
Header Types
............................................
l-4
Combining Commands from the Same Subsystem
..............
l-6
Duplicate Keywords
.......................................
1-6
Query Usage
.............................................
l-7
Program Header Options
..................................
1-8
Parameter Syntax Rules
...................................
. l-8
Instruction Terminator
...................................
l-10
Selecting Multiple Subsystems
............................. l-10
Programming an Instrument
................................. l-11
InitiaIization
............................................. l-11
Example Program
........................................
1-12
Program Overview
.......................................
1-12
Receiving Information from the Instrument
.................
. l-12
Response Header Options ...............................
.l-13
Response Data Formats
..................................
1-14
String Variables .........................................
l-l.5
Numeric Base
...........................................
1-16
Numeric Variables .......................................
1-16
Definite-Length Block Response Data
..................... .l-17
Multiple Queries
......................................... .l-18
Instrument Status
........................................
1-18
HP
1650B/HP
16518
Programming Reference
Contents-l