Series 3700 System Switch/Multimeter Reference Manual
Section 8
:
Status Model
Document Number: 3700S-901-01 Rev. A / August 2007
8-9
status.standard.enable = <mask>
To convert from decimal to binary, use the information shown in the figure above.
For example:
To set bits B0, B4, B7, and B10, a decimal value of 1169 would be used for the mask parameter
(1169 = 1 + 16 + 128 + 1024).
Reading registers
Any register in the status structure can be read either by sending the common command query
(where applicable), or by including the script command for that register in either the print() or
print(tostring()) command. The print() command returns a numeric value, while the
print(tostring()) command returns the string equivalent.
For example:
The following commands requests the Service Request Enable register value:
*SRE?
print(tostring(status.request_enable))
print(status.request_enable)
The response message will be a decimal value that indicates which bits in the register are set.
That value can be converted to its binary equivalent. If the response is a decimal value of 37
(binary value of 100101), bits B5, B2, and B0 are set.