HP VXI manual Common Command Reference, Cls

Page 28

Common Command Reference

This section describes the IEEE-488.2 Common Commands that can be used to program instruments in the mainframe. Commands are listed alphabetically (the following table shows the Common Commands listed by functional group). For additional information on any Common Commands, refer to the IEEE Standard 488.2-1987.

IEEE 488.2 Common Commands Functional Groupings

Category

Command

Title

 

 

 

General

*IDN?

Identification Query

 

*RST

Reset Command

 

*TST?

Self-Test Query

Instrument

*CLS

Clear Status Command

Status

*ESE <mask>

Standard Event Status Enable Command

 

*ESE?

Standard Event Status Enable Query

 

*ESR?

Standard Event Status Register Query

 

*SRE <mask>

Service Request Enable Command

 

*SRE?

Service Request Enable Query

 

*STB?

Status Byte Query

 

*DMC <name>,<cmds>

Define Macro Command

Macros

*EMC <state>

Enable Macros Command

 

*EMC?

Enable Macro Query

 

*GMC? <name>

Get Macro Query

 

*LMC?

Learn Macro Query

 

*PMC

Purge all Macros Command

 

*RMC <name>

Remove individual Macro Command

 

*OPC

Operation Complete Command

Synchronization

*OPC?

Operation Complete Query

 

*WAI

Wait-to-Continue Command

 

 

 

*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 Enable Status Register, or Questionable Data Enable 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).

28 Command Reference

Chapter 3

Image 28
Contents Contents Comments Example QUEStionableEVENt? Printing History This Page Intentionally Left Blank Introduction Introduction Chapter About this Chapter General Status Register ModelCondition Register Transition Filter Event Register An Example SequencePage Required Status Groups Status Byte Register Standard Event Group Status Byte Bit DefinitionsStandard Operation Status Group Questionable Data Group Handling SRQs Using MAV to Determine When Data is Available Status System Programming ExamplesExample Program SRQ Icloseid Example Program Deverrmask Qryerrmask Chapter Programming the Status System Programming the Status System Chapter Command Reference STATus OPERationENABleOPERation CONDition? OPERationENABle? PRESetOPERationEVENt? QUEStionable CONDition?QUEStionableENABle? QUEStionableENABleQUEStionableEVENt? STATQUESEVEN? Common Command Reference CLSEMC? ESE maskESE? ESR?LMC? IDN?LRN? OPC OPC?PMC RSTSRE mask SRE?STB? TST?WAI Command Reference Chapter