beautypg.com

GW Instek GDS-800 Series Programming Manual User Manual

Page 23

background image

GDS-806/810/820/840 Programming Manual

22

*SRE

Setup the contents of the Service Request Enable Register (SRER). The query

form returns the contents of the SRER. Bit 6 of the SRER is always zero. The bits

on the SRER correspond to the bits on the SBR.

Syntax

*SRE

*SRE?

Arguments

is an integer from 0 to 255.

Returns

Examples

*SRE 7

sets bits of the SRER to 0000 0111.

If the *SRE? returns 0000 0011, the setting of *SRE is 3.

*STB? (query only)

Query of the Status Byte register (SBR) with *STB? will return a decimal number

representing the bits that are set (true) in the status register.

Syntax

*STB?

Returns

Examples

*STB?

returns 81 if SBR contains the binary value 0101 0001.