Keysight 34420A User’s Guide 15
Using Service Request (SRQ) and Serial POLL . . . . . . . . . . . . . . . .179
Using *STB? to Read the Status Byte . . . . . . . . . . . . . . . . . . . . . . .180
To Interrupt Your Bus Controller Using SRQ . . . . . . . . . . . . . . . . . .180
To Determine When a Command Sequence is Completed . . . . . .180
How to Use the Message Available Bit (MAV) . . . . . . . . . . . . . . . .181
Using *OPC to Signal When Data is in the Output Buffer . . . . . . .181
The Standard Event Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .182
The Questionable Data Register . . . . . . . . . . . . . . . . . . . . . . . . . . .183
The Operational Status and Condition Registers . . . . . . . . . . . . . .184
Status Reporting Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .186
Calibration Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .189
RS-232 Interface Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .191
RS-232 Configuration Overview . . . . . . . . . . . . . . . . . . . . . . . . . . .191
RS-232 Data Frame Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .192
Connection to a Computer or Terminal . . . . . . . . . . . . . . . . . . . . . .192
Connection to a Printer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .194
DTR / DSR Handshake Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . .194
RS-232 Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .195
RS-232 Interface Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .197
An Introduction to the SCPI Language . . . . . . . . . . . . . . . . . . . . . . . .198
SCPI Data Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .200
Input Message Terminators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .201
Output Data Formats . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .202
Using Device Clear to Halt Measurements . . . . . . . . . . . . . . . . . . . . .203
TALK ONLY for Printers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .204
To Set the GPIB Address . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .205
To Select the Remote Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .207
To Set the Baud Rate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .209
To Set the Parity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .211
To Select the Programming Language . . . . . . . . . . . . . . . . . . . . . . . .213
Alternate Programming Language Compatibility . . . . . . . . . . . . . . . .215
Specific Issues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .215