HP VXI manual About this Chapter, General Status Register Model

Page 7

Chapter 2

Programming the Status System

About this Chapter

This chapter discusses the structure of the status system used in SCPI instruments and explains how to program status registers. An important feature of SCPI instruments is that they all implement status registers in the same way. The status system is explained in the following sections:

General Status Register Model

This section explains the way that status registers are structured in SCPI instruments. It also contains an example of how bits in the various registers change with different input conditions.

Required Status Groups

This section describes the minimum required status registers present in SCPI instruments. These status registers cover the most frequently used functions.

General Status Register Model

The generalized status register model shown in Figure 2-1is the building block of the SCPI status system. This model consists of a condition register, transition filter, an event register, and an enable register. A set of these registers is called a status group.

When a status group is implemented in an instrument, it always contains all of the component registers. However, there is not always a corresponding command to read or write to every register.

Figure 2-1. Generalized Status Register Model

Chapter 2

Programming the Status System 7

Image 7
Contents Contents Comments Example QUEStionableEVENt? Printing History This Page Intentionally Left Blank Introduction Introduction Chapter General Status Register Model About this ChapterAn Example Sequence Condition Register Transition Filter Event RegisterPage Required Status Groups Status Byte Register Status Byte Bit Definitions Standard Event GroupStandard Operation Status Group Questionable Data Group Status System Programming Examples Handling SRQs Using MAV to Determine When Data is AvailableExample Program SRQ Icloseid Example Program Deverrmask Qryerrmask Chapter Programming the Status System Programming the Status System Chapter Command Reference STATus OPERationENABleOPERation CONDition? QUEStionable CONDition? OPERationENABle?PRESet OPERationEVENt?QUEStionableENABle? QUEStionableENABleQUEStionableEVENt? STATQUESEVEN? CLS Common Command ReferenceESR? EMC?ESE mask ESE?LMC? IDN?LRN? RST OPCOPC? PMCTST? SRE maskSRE? STB?WAI Command Reference Chapter