STATus:OPERation:ENABle
STATus:OPERation:ENABle
Syntax
STATus:OPERation:ENABle <enable_val>
STATus:OPERation:ENABle?
Description
This command enables bits in the enable register for the Standard Operation Register group. The selected bits are then reported to the Status Byte.
![]()
For more information on the Status System for the instrument, see Status System Introduction.
Used With:
- 34901A 20 Channel Multiplexer (2/4-wire) Module
- 34902A 16 Channel Multiplexer (2/4-wire) Module
- 34907A Multifunction Module (digital input and totalizer channels only)
- 34908A 40 Channel Single-Ended Multiplexer Module
Parameters
Name Type Range of Values Default Value <enable_val> Numeric An integer from 0 to 65535, specifying the bits to enable as a bit sum. This is a required parameter.
Remarks
- The following table lists the bit definitions for the Standard Operation Register.
Bit # Bit Name Decimal Value Definition 0 Calibrating 1 The instrument is calibrating. 1 Self Test 2 The instrument is doing a self-test. 2 Not Used 4 (Always returns 0) 3 Not Used 8 (Always returns 0) 4 Scanning 16 The instrument is scanning. 5 WFT 32 The instrument is waiting for a trigger. 6 Not Used 64 (Always returns 0) 7 USB MSD detected 128 A USB mass storage device (USB drive) has been detected. 8 Config Changed 256 The instrument configuration has changed. 9 Mem Threshold 512 The number of readings in memory has exceeded the memory threshold setting (see DATA:POINts:EVENt:THReshold). 10 Instrument Locked 1024 The instrument is locked. 11 Settings Changed 2048 The instrument's settings have changed. 12 Not Used 4096 (Always returns 0) 13 Global Error 8192 An error is in the global error queue. 14 Busy 16384 The instrument is busy. 15 Not Used 32768 (Always returns 0)
- 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) and bit 10 (decimal value = 1024), the corresponding decimal value would be 1024 (1 + 1024).
- Bit 14, the Busy bit, will be set while the instrument is performing long commands, such as MMEMory:IMPort:CONFig?.
Return Format
The query command reads the enable register and returns a decimal value corresponding to the binary-weighted sum of all bits set in the register. For example, if bit 0 (decimal value = 1) and bit 10 (decimal value = 1024) are enabled, the query command will return +1025.
Examples
The following command enables bit 9 (decimal value = 512) in the enable register.
STAT:OPER:ENAB 512
The following query returns which bits are enabled in the register.
STAT:OPER:ENAB?
Typical Response: +512