Agilent Technologies E1300B User Manual

Page 194

Advertising
background image

* CLS

Clear Status Command. The *CLS command clears all status registers
(Standard Event Status Register, Standard Operation Event Status Register,
Questionable Data Event Register) and the error queue for an instrument. This
clears the corresponding summary bits (bits 3, 5, & 7) and the
instrument-specific bits (bits 0, 1, & 2) in the Status Byte Register. *CLS does
not affect the enabling of bits in any of the status registers (Status Byte Register,
Standard Event Status Register, Standard Operation Event Status Register, or
Questionable Data Event Status Register). (The SCPI command
STATus:PRESet does clear the Standard Operation Status Enable and
Questionable Status Enable registers.) *CLS disables the Operation Complete
function (*OPC command) and the Operation Complete Query function
(*OPC? command).

* DMC <

name_string

> ,

<

command_block

>

Define Macro Command. Assigns one, or a sequence of commands to a macro
name.

The command sequence may be composed of SCPI and/or Common commands.

The name given to the macro may be the same as a SCPI command, but may not
be the same as a Common command. When a SCPI named macro is executed,
the macro rather than the SCPI command is executed. To regain the function of
the SCPI command, execute the *EMC 0 command.

Example

Create a macro to return the System Instrument’s Device list.

OUTPUT 70900;"* DMC ’LIST’,# 0VXI:CONF:DLIS?"

Note that the name LIST is in quotes. The second parameter type is arbitrary
block program data
. The characters that define a command message are prefixed
by the characters # 0 (pound zero). For a more information on this parameter
type, see Parameter Types in the first part of this chapter.

* EMC <

enable

>

Enable Macros Command. When enable is non-zero, macros are enabled. When
enable is zero, macros are disabled.

* EMC?

Enable Macros Query. Returns either 1 (macros are enabled), or 0 (macros are
disabled) for the selected instrument.

* ESE < mask>

Standard Event Status Enable Register Command. Enables one or more events
in the Standard Event Status Register to be reported in bit 5 (the Standard
Event Status Summary Bit) of the Status Byte Register. You enable an event by
specifying its decimal weight for < mask> . To enable more than one event,
specify the sum of the decimal weights. Refer to "Standard Event Status
Register" earlier in this chapter for a table showing the contents of the Standard
Event Status Register.

Example

OUTPUT 70900;"* ESE 60"

Enables bits 2, 3, 4, & 5.
Respective weights are 4 + 8
+ 16 + 32 = 60

7-66 System Instrument Command Reference

Advertising
This manual is related to the following products: