App 2-12
Appendix 2. Communication Commands
IM CW120-E
Output Queue and Error Queue
Output Queue
The output queue is provided to store response
messages to queries. For example, when the
:MEASure:INTEgrate:VALUe? query is sent to
request output of measured data, the response
data will be stored in the output queue until it is
read out.
Data items are stored in sequence in the output
queue and then read out on a first-in-first-out
basis. The output queue is emptied in any of
the following cases, in addition to a case when it
is entirely read out.
• A new message is received from the personal
computer.
• A deadlock occurs.
• The power is turned on again.
Error Queue
The error queue stores the error number and
message when an error occurs. For example, if
the personal computer sends an illegal program
message, the error queue stores error number
113 and the error message “Undefined header.”
The contents of the error queue can be read
using the STATus:ERRor? query. As with the
output queue, messages in the error queue are
read out on a first-in-first-out basis.
If the error queue overflows, the last message is
replaced with message 350, “Queue overflow.”
The error queue is emptied in either of the
following cases, in addition to a case when it is
entirely read out).
• The *CLS command is received.
• The power is turned on again.
1.7
Detailed Description of
Communication Commands
1.7.1 COMMunicate Group
The commands in the COMMunicate group are
used to set or query communication
parameters.
:COMMunicate?
Function Queries all the communication
settings.
Syntax
:COMMunicate?
Example
:COMMUNICATE?
→
:COMMUNICATE:HEADER
1;VERBOSE 1;STATUS 0
:COMMunicate:HEADer
Function Sets/queries whether or not the
header is returned in response to a
query.
Syntax
:COMMunicate:HEADer
{<Boolean>}
:COMMunicate:HEADer?
Example
:COMMUNICATE:HEADER ON
:COMMUNICATE:HEADER?
→
:COMMUNICATE:HEADER 1
:COMMunicate:STATus?
Function Queries the status specific to the
line.
Syntax
:COMMunicate:STATus?
Example
:COMMUNICATE:STATUS?
→
:COMMUNICATE:STATUS 0
Description The status bits have the following
meanings.
Bit 0: Parity error
Bit 1: Framing error
Bit 2: BREAK character detected
Bit 3 and later: Always 0
If one of the causes noted above
occurs, the corresponding status bit
is set. The bit is cleared when the
status is read.