STATus:QUEStionable:ENABle
Syntax
STATus:QUEStionable:ENABle <enable_value>
STATus:QUEStionable:ENABle?
Description
This command enables bits in the enable register for the Questionable Data Register group. The selected bits are then reported to the Status Byte.
|
For more information on the SCPI Status System for the Agilent 34980A, see the Status System Diagram. |
Used With:
34921A through 34925A Multiplexer Modules
34937A through 34939A GP Switch Modules
34950A Digital I/O Module (digital input and counter channels only)
34952A Multifunction Module (digital input and totalizer channels only)
Parameters
Name |
Type |
Range of Values |
Default Value |
<enable_value> |
Numeric |
A decimal value which corresponds to the binary-weighted sum of the bits in the register (see table below). |
This is a required parameter |
Remarks
The following table lists the bit definitions for the Questionable Data Register.
Bit Number |
Decimal Value |
Definition | |
0 |
Voltage Overload |
1 |
Range overload on dc or ac volts. |
1 |
Current Overload |
2 |
Range overload on dc or ac current. |
2-8 |
Not Used |
Not Used |
"0" is returned. |
9 |
Resistance Overload |
512 |
Range overload on 2- or 4-wire resistance. |
10 |
Temperature Overload |
1024 |
Range overload on temperature. |
11 |
Totalizer Overflow |
2048 |
Count overflow on a totalizer channel. The maximum count is 4,294,967,295 (232 - 1). The count rolls over to "0" after reaching the maximum allowed value. |
12 |
Memory Overflow |
4096 |
Reading memory is full. One or more readings have been lost. |
13-15 |
Not Used |
Not Used |
"0" is returned. |
Use the <enable_value> parameter to specify which bits will be reported to the Status Byte. The decimal value specified corresponds to the binary-weighted sum of the bits you wish to enable in the register. For example, to enable bit 0 (decimal value = 1), bit 1 (decimal value = 2), and bit 12 (decimal value = 4096), the corresponding decimal value would be 4099 (1 + 2 + 4096).
The *CLS (clear status) command will not clear the enable register but it does clear all bits in the event register.
The STATus:PRESet command will clear all bits in the enable register.
Return Format
The query command reads the enable register and returns a decimal value which corresponds to the binary-weighted sum of all bits set in the register. For example, if bit 0 (decimal value = 1) and bit 1 (decimal value = 2) are enabled, the query command will return "+3".
Examples
The following command enables bit 9 (decimal value = 512) in the enable register.
STAT:QUES:ENAB 512
The following query returns which bits are enabled in the register.
STAT:QUES:ENAB?
Typical Response: +512