200
S:\HP8924C\USRGUIDE\BOOK\chapters\hpibstat.fb
Chapter 4, Status Reporting
Status Reporting
Accessing the Standard Event Status Register Group Registers
The following sections show the syntax and give programming examples, using
the HP BASIC programming language, for the Common Commands used to
access the Standard Event Status Register Group registers.
Reading the Event Register
Syntax
*ESR?
Example
OUTPUT 714;”*ESR?”
ENTER 714;Register_value
Clearing the Event Register
The EVENT register is cleared whenever it is queried or whenever the *CLS
Common Command is sent to the Test Set.
Reading the Enable Register
Syntax
*ESE?
Example
OUTPUT 714;”*ESE?”
ENTER 714;Register_value
10 INTEGER Std_evn_enab_rg
20 OUTPUT 714;”ESE?”
30 ENTER 714;Std_evn_enab_rg
40 PRINT Std_evn_enab_rg
50 END
Writing the Enable Register
Syntax
*ESE <integer>
Example
OUTPUT 714;”*ESE 255”
Clearing the Enable Register
The ENABLE register is cleared by writing to it with an integer value of zero.