7
Programming Examples
I ntroduction
The following examples are an introduction to programming the
HP 8 1 12A using HP BASIC 5.0/5.1 for the HP 9000 Series 200/300
controllers. The examples cover the following subjects:
General Examples
•
Testing communication with the HP 8 1 12A.
•
Performing the instrument self-test.
•
Using the
Buffer not Empty
flag.
Common Task
Program
Description
Examples
DEL_ WID
Shows how to program and increment/decrement
some HP 8 1 12A parameters
Note
SPOLL_2
Shows how to service a SRQ by directly
conducting a SPOLL
INTR_2
Shows how to service SRQ's by using interrupts
and print the error bits which are set in the status
byte
ERROR_DEMO Demonstrates how to determine which error bits
are set in the status byte
LRN _DEMO
Shows how to read the Learn String with the
CST command and how to send it back to the
HP 8 1 12A
INTERROG
Demonstrates the usage of all types of interrogate
commands offered by the HP 81 12A
In the examples it is not strictly necessary to put the HP 8 1 12A into
remote mode using the REMOTE 712 command because:
•
The CLEAR 712 statement used to initialise the instrument also
selects remote mode.
•
The OUTPUT statement itself selects remote mode.
However, the REMOTE statement is included for completeness.
Programming Examples 7-1
Summary of Contents for 8112A
Page 6: ......
Page 24: ......
Page 36: ......
Page 44: ......
Page 70: ......
Page 92: ......
Page 144: ...8 32 Testing Performance ...
Page 176: ......
Page 190: ......
Page 194: ...10 2 4 Servicing the Power Supply ...
Page 196: ......
Page 197: ......
Page 216: ......
Page 240: ...10 4 16 Servicing the Shaper and Output Amplifier ...
Page 242: ...A R l BD RY MR I N 1 2 7 I I IJt 51 CR1 B e i 1 _ _ _ _ 20 ...
Page 244: ......
Page 251: ......
Page 262: ...A B A2 ED RY CONTROL ...
Page 270: ......
Page 290: ...R B c R3 BD RY M I CROPROCESSOR 1 2 3 FIGURE 1 0 7 8 ...
Page 294: ... 8 X2l 2 X2 Figure A 1 Mechanical Parts 1 A 2 Replaceable Parts ...
Page 295: ...MP MP3 MP MP2 MP4 MPS MP 1 2 MPS MP MP I B ElElElEl Replaceable Parts A 3 ...
Page 334: ......
Page 378: ...Figure B 14 Mechanical Parts 1 B 44 Backdating ...
Page 380: ......
Page 382: ......
Page 402: ......