beautypg.com

Remote control commands and queries, Status – Teledyne LeCroy X-STREAM OSCILLOSCOPES Remote Control User Manual

Page 147

background image

Remote Control Commands and Queries

WM-RCM-E Rev D

ISSUED: February 2005

141

STATUS

*ESR?

Query

DESCRIPTION

The *ESR? query reads and clears the contents of the Event Status
Register (ESR). The response represents the sum of the binary values

of the register bits 0 to 7. The table below gives an overview of the
ESR register structure.

QUERY SYNTAX

*ESR?

RESPONSE FORMAT

*ESR

: = 0 to 255

EXAMPLE (GPIB)

The following instruction reads and clears the contents of the ESR
register:

CMD$=“*ESR?”: CALL IBWRT(SCOPE%,CMD$):

CALL IBRD(SCOPE%,RSP$): PRINT RSP$

Response

message:

*ESR

0

RELATED COMMANDS

ALL_STATUS, *CLS, *ESE