*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

40END

*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

40END

*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

Page 195
Image 195
Agilent Technologies E1301B, E1300B, 75000 SERIES B user manual Output 70900*ESE?, Enter 70900A, Output 70900*ESR?