Contents

Programming HP VXI Instruments Common Commands and the Status System

 

Edition 1

Chapter 1

 

Introduction ....................................................................................................................

5

Chapter 2

 

Programming the Status System ..................................................................................

7

About this Chapter ........................................................................................................

7

General Status Register Model .....................................................................................

7

Condition Register .................................................................................................

8

Transition Filter .....................................................................................................

8

Event Register .......................................................................................................

8

Enable Register .....................................................................................................

8

An Example Sequence ..........................................................................................

8

Required Status Groups ..............................................................................................

10

Status Byte ...........................................................................................................

11

Standard Event Group .........................................................................................

12

Standard Operation Status Group ........................................................................

13

Questionable Data Group ....................................................................................

14

Status System Programming Examples ......................................................................

15

Handling SRQs ....................................................................................................

15

Using MAV to Determine When Data is Available ............................................

15

Example Program .........................................................................................

16

Using a Service Request to Detect Errors ...........................................................

18

Example Program .........................................................................................

19

Chapter 3

 

Command Reference ...................................................................................................

23

About this Chapter ......................................................................................................

23

STATus .......................................................................................................................

24

Subsystem Syntax .........................................................................................

24

:OPERation :CONDition? ...................................................................................

24

Comments .....................................................................................................

24

Example ........................................................................................................

24

:OPERation:ENABle ...........................................................................................

24

Parameters .....................................................................................................

24

Comments .....................................................................................................

24

Example ........................................................................................................

24

:OPERation:ENABle? .........................................................................................

25

Comments .....................................................................................................

25

Example ........................................................................................................

25

:OPERation[:EVENt]? ........................................................................................

25

Comments .....................................................................................................

25

Example ........................................................................................................

25

:PRESet ...............................................................................................................

25

Example ........................................................................................................

25

:QUEStionable :CONDition? ..............................................................................

25

Comments .....................................................................................................

26

Contents 1