VXI VM4016 user manual Esr?

Page 54

VXI Technology, Inc.

 

 

 

*ESR?

 

 

 

 

 

 

 

 

Purpose

Queries and clears the Standard Event Status Register

 

 

 

 

 

 

 

Type

IEEE 488.2 Common Command

 

 

 

 

 

 

 

 

Command Syntax

N/A

 

 

 

 

 

 

 

 

Command Parameters

N/A

 

 

 

 

 

 

 

 

*RST Value

N/A

 

 

 

 

 

 

 

 

Query Syntax

ESR?

 

 

 

 

 

 

 

 

Query Parameters

N/A

 

 

 

 

 

 

 

 

Query Response

Numeric ASCII value from 0 to 255

 

 

 

 

 

 

 

 

Description

The Event Status Register (ESR) query queries and clears the contents of the

 

 

 

Standard Event Status Register. This register is used in conjunction with the ESE

 

 

 

register to generate the Event Status Bit (ESB) in the Status Byte. The layout of the

 

 

 

ESR is:

 

 

 

 

Bit 0 - Operation Complete

 

 

 

 

Bit 1 - Request Control

 

 

 

 

Bit 2 - Query Error

 

 

 

 

Bit 3 - Device Dependent Error

 

 

 

 

Bit 4 - Execution Error

 

 

 

 

Bit 5 - Command Error

 

 

 

 

Bit 6 - User Request

 

 

 

 

Bit 7 - Power On

 

 

 

 

The Operation Complete bit is set when it receives an *OPC command.

 

 

 

The Query Error bit is set when data is over-written in the output queue. This could

 

 

 

occur if one query is followed by another without reading the data from the first

 

 

 

query.

 

 

 

 

The Execution Error bit is set when an execution error is detected. Errors that range

 

 

 

from -200 to -299 are execution errors.

 

 

 

The Command Error bit is set when a command error is detected. Errors that range

 

 

 

from -100 to -199 are command errors.

 

 

 

The Power On bit is set when the module is first powered on or after it receives a

 

 

 

reset via the VXI Control Register. Once the bit is cleared (by executing the *ESR?

 

 

 

command) it will remain cleared.

 

 

 

 

 

 

 

 

Examples

Command / Query

Response (Description)

 

 

 

*ESR?

4

 

 

 

 

 

 

 

Related Commands

*ESE

 

54

VM4016 Command Dictionary

Image 54
Contents VM4016 Page Table of Contents VXI Technology, Inc Certification WarrantyLimitation of Warranty Restricted Rights LegendC L a R a T I O N O F C O N F O R M I T Y EMCGeneral Safety Instructions Terms and SymbolsThis product. Product should be inspected or serviced Support Resources VXI Technology, Inc VM4016 Preface Introduction IntroductionDescription Front Panel LayoutVM4016 Block Diagram VM4016 General Specifications IRQ OutputInstallation Calculating System Power and Cooling RequirementsPreparation for USE Setting the Chassis Backplane Jumpers Setting the Logical AddressFront Panel Interface Wiring Signal PIN Number Analog Comparator PIN Outs1631 Examples of Scpi Commands FETCHCONDITIONED? ProgrammingFETCHLATCHED? FETCHRAW? Inhousepseudo Inhouseregint InhouseregintInhouseregenable Inhouseclearlatch Inputdebounce ExamplesInputmask INPMASK?INPutMASKINTerrupt boolean Where boolean is 0 OFF 1 on InputmaskinterruptInputoffset INPOFFS?Inputpolarity INPutPOLarity NORM,@35Inputrange Outputpolarityexternalinterrupt Outputpolarityexternallatched Application Examples ExampleCommands Description Single Channel OperationControl Page Bracketing a Voltage Sets the external interrupt output to be active highBracketing AN Input Voltage Page Register Access Examples Register MAPFor example Pseudo Register Access VXIPLUG&PLAY Driver Examples VM4016 Programming VXI Technology, Inc Command Dictionary Alphabetical Command ListingIeee 488.2 Common Commands Instrument Specific Scpi Commands NormalScpi Required Commands Command Dictionary Query ParametersCommon Scpi Commands CLSESE Response DescriptionESR? IDN? OPC Query Parameters Query Response DescriptionRST SRE STB? TRG TST? WAI OPCInstrument Specific Scpi Commands FETChCONDitioned?FETChLATChed? FETChRAW? Inhouseclearlatch Inhousepseudo Inhouseregint Inhouseregenable INPutDEBounce INPutMASK INPutMASKINTerrupt INPutOFFSet INPutPOLarity INPutRANGe OUTPutPOLarityEXTernalINTerrupt OUTPutPOLarityEXTernalLATChed Required Scpi Commands STATusOPERationCONDition?STATusOPERationENABle STATusOPERationEVENt? STATusPRESet STATusQUEStionableCONDition? STATusQUEStionableENABle STATusQUEStionableEVENt SYSTemERRor? SYSTemVERSion? Theory of Operation Input Range Control Relay Signal Comparison Interrupt Generation Interrupt Generation Index OUTPutPOLarityEXTernalLATChed