Programming Guide – 66
Common Commands
Clear Status Command
Syntax
*CLS
Function
Clears the following queues and registers:
• Error queue
• Standard event status register
• Status byte register
• Operation event register
• Questionable event register
If *CLS is sent immediately after a message terminating sequence, both the
output queue and the MAV bit in the status byte register are cleared. *CLS also
cancels the functions of *OPC and *OPC?.
Example
*CLS
Standard Event Status Enable Register Command
Syntax
*ESE<space><numeric value> where 0 ≤ <numeric value> ≤ 255
Function
Sets the bits in the standard event status enable register. The numeric value is
rounded to the nearest integer and converted to a binary number. The bits of the
register are set to match the bit values of the binary number.
Example
*ESE 216 sets the standard event status enable register bits to 11011000.
Standard Event Status Enable Register Query
Syntax
*ESE?
Function
Returns the contents of the standard event status enable register as an integer
that, when converted to a binary number, represents the bit values of the register
Example
*ESE? returns 216 if the standard event status enable register is set to
11011000.
Standard Event Status Register Query
Syntax
*ESR?
Function
Returns the contents of the standard event status register as an integer that,
when converted to a binary number, represents the bit values of the register
Example
*ESR? returns 195 if the standard event status register is set to 11000011.
Identification Query
Syntax
*IDN?
Function
Returns a string that identifies the manufacturer, the HA9 model number, the
serial number (or 0 if unavailable) and the firmware level.
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com