16 Keysight 34420A User’s Guide
SCPI Compliance Information  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
IEEE-488 Compliance Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . 219
5 Error Messages
Error Messages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222
Execution Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 223
Self-Test Errors  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 230
Calibration Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 232
6 Application Programs
Application Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 236
HP BASIC Language Programs  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 237
HP BASIC/GPIB Program Example 1  . . . . . . . . . . . . . . . . . . . . . . . 237
HP BASIC/GPIB Program Example 2  . . . . . . . . . . . . . . . . . . . . . . . 238
HP BASIC/GPIB Program Example 3  . . . . . . . . . . . . . . . . . . . . . . . 240
HP BASIC/GPIB Program Example 4  . . . . . . . . . . . . . . . . . . . . . . . 243
RS-232 Operations with QuickBASIC  . . . . . . . . . . . . . . . . . . . . . . . . . 245
Microsoft Visual Basic Language Program  . . . . . . . . . . . . . . . . . . . . . 247
C Language Programs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254
Compiling and Linking a C Program . . . . . . . . . . . . . . . . . . . . . . . . 254
C/GPIB Example 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 256
C/GPIB Example 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 258
C/GPIB Program Example 3  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Microsoft Excel Macro Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 266
Macro Comments  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 267
7Measurement Tutorial
Measurement Tutorial  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
Measurement Techniques and Sources of Error . . . . . . . . . . . . . . . . . 273
Voltage Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Resistance Measurements  . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Temperature Measurements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 288
Cleaning the Connector Contacts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 297