beautypg.com

Other status register commands – GW Instek GLC-9000 User Manual User Manual

Page 161

background image

REMOTE CONTROL

161

Other Status Register Commands

*CLS

Clears the Status Byte register and all the event registers.

Syntax

*CLS

Example

*CLS
Clears all the event registers.

*OPC

Sets the OPC bit of the Standard Event Status Register after all
outstanding commands have completed. When queried, will return
“1” after any outstanding commands are complete.

Syntax

*OPC

Query Syntax

*OPC?

Query Return

Returns “1” to the output buffer after all outstanding
commands have completed.

Error Messages

With First In First Out (FIFO) errors, the first
error returned is the first error saved. When an
error message is read, the error will be cleared.
An alarm tone will sound for each error by
default.

If the number of errors is more than 20, the last
error saved in the queue will be replaced with a
Queue overflow error. No more queue errors
will be saved until the queue is cleared.

The error queue can be cleared by using *CLS
(Clear Status) or by powering the instrument
down. When the error queue is read, the
associated error message is cleared. Using the
*RST command will not clear the error queue.

Remote Control Operation

SYSTem:ERRor?
An error message is read from the Error Queue.
Error messages can have up to 255 characters. For
example: -113,"Undefined header"