Agilent Technologies E1300B User Manual
Page 195
* ESE?
Standard Event Status Enable Query. Returns the weighted sum of all enabled
(unmasked) bits in the Standard Event Status Register.
Example
10 OUTPUT 70900;"* ESE?"
Sends status enable query
20 ENTER 70900;A
Places response in variable
30 PRINT A
Prints response
40 END
* ESR?
Standard Event Status Register Query. Returns the weighted sum of all set bits
in the Standard Event Status Register. After reading the register, *ESR? clears
the register. The events recorded in the Standard Event Status Register are
independent of whether or not those events are enabled with the *ESE
command.
Example
10 OUTPUT 70900;"* ESR?"
Sends Standard Event Status
Register query
20 ENTER 70900;A
Places response in variable
30 PRINT A
Prints response
40 END
* GMC? <
name_string
>
Get Macro Query. Returns arbitrary block response data which contains the
command or command sequence defined by name_string. The command
sequence will be prefixed with characters which indicate the number of
characters that follow the prefix.
Example
10 OUTPUT 70900;"* GMC? ’LIST’"
ask for definition of macro
from *DMC example
20 ENTER 70900;Cmds$
enter into Cmds$ the definition
of the macro "LIST"
30 PRINT Cmds$
Cmds$= # 214VXI:CONF:
DLIS?
40 END
In this case, the prefix consists of "# 214". The 2 says to expect two
character-counting digits. The 14 says that 14 characters of data follow. Had the
returned macro been shorter, such as # 15*EMC?, we would read this as 1
counting digit indicating 5 data characters.
System Instrument Command Reference 7-67