Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-189
The individual bits of the status byte condition register can be set using constants (for example, to set the enable
bit of the standard event status register to B0, set
status.standard.enable = status.standard.OPC)
.
The following table contains descriptions of the bits and available values:
Bit Value
Description
B0
status.standard.OPERATION_COMPLETE
status.standard.OPC
Set bit indicates that all pending selected
instrument operations are completed and the
instrument is ready to accept new commands.
The bit is set in response to an *OPC
command. The ICL function opc() can be used
in place of the *OPC command.
Bit 0 decimal value: 1
B1
Not used
Not applicable
B2
status.standard.QUERY_ERROR
status.standard.QYE
Set bit indicates that you attempted to read
data from an empty Output Queue.
Bit 2 decimal value: 4
B3
status.standard.DEVICE_DEPENDENT_ERROR
status.standard.DDE
Set bit indicates that an instrument operation
did not execute properly due to some internal
condition.
Bit 3 decimal value: 8
B4
status.standard.EXECUTION_ERROR
status.standard.EXE
Set bit indicates that the instrument detected an
error while trying to execute a command.
Bit 4 decimal value: 16
B5
status.standard.COMMAND_ERROR
status.standard.CME
Set bit indicates that a command error has
occurred. Command errors include:
IEEE-488.2 syntax error:
Instrument received
a message that does not follow the defined
syntax of the IEEE-488.2 standard.
Semantic error:
Instrument received a
command that was misspelled or received an
optional IEEE-488.2 command that is not
implemented.
GET error:
The instrument received a Group
Execute Trigger (GET) inside a program
message.
Bit 5 decimal value: 32
B6
status.standard.USER_REQUEST
status.standard.URQ
Set bit indicates that the LOCAL key on the
instrument front panel was pressed.
Bit 6 decimal value: 64
B7
status.standard.POWER_ON
status.standard.PON
Set bit indicates that the instrument has been
turned off and turned back on since the last
time this register has been read.
Bit 7 decimal value: 128
In addition to the above constants,
standardRegister
can be set to the decimal equivalent of the bit to set. To
set more than one bit of the register, set
standardRegister
to the sum of their decimal weights. For example,
to set bits B0 and B4, set
standardRegister
to 17 (which is the sum of 1 + 16).
Bit
B7 B6 B5 B4 B3 B2 B1 B0
Binary
value
0/1 0/1 0/1 0/1 0/1 0/1 0/1 0/1
Decimal
128
64 32 16 8 4 2 1
Weights (2
7
) (2
6
) (2
5
) (2
4
) (2
3
) (2
2
) (2
1
) (2
0
)
Example 1
standardRegister = status.standard.OPC
+ status.standard.EXE
status.standard.enable = standardRegister
Sets the OPC and EXE bits of the
standard event status register using
constants.