
ContentsProgramming HP VXI InstrumentsCommon Commands and the Status SystemEdition 1Contents 1Chapter 1Introduction ...
10 Programming the Status System Chapter 2Required Status GroupsAll SCPI instruments must implement a minimum set of status groups. Some instrument
Programming the Status System 11Chapter 2The Standard Operation Status and Questionable Data groups are 16 bits wide, while Status Byte and Standard
12 Programming the Status System Chapter 2The meaning of each bit in the Status Byte is explained in the following table.Example commands using the
Programming the Status System 13Chapter 2Example commands using Standard Event registers:*ESE 48 Generate a summary bit on execution or command erro
14 Programming the Status System Chapter 2Questionable DataGroupThe Questionable Data status group provides information about the quality of instrum
Programming the Status System 15Chapter 2Status System Programming ExamplesThis section contains two example programs that use the status system and
16 Programming the Status System Chapter 2• Define an SRQ handler to do the following: -- Read the Status Byte using ireadstb. ireadstb returns the
Programming the Status System 17Chapter 2void main(){ INST id; char addr[80]; char cmd[255]; int opc; int idx; printf("This program
18 Programming the Status System Chapter 2 iclose(id);} Using a ServiceRequest to DetectErrorsThe following example program sets up an SRQ handler
Programming the Status System 19Chapter 2Example Program/* status2.c * * The following program provides an interactive command line interface * to
2 ContentsExample ... 26:QUEStionable:ENABle ..
20 Programming the Status System Chapter 2 (QRY_ERR_MASK == (esr & QRY_ERR_MASK )) ) { /* an error occurred, read
Programming the Status System 21Chapter 2 /* send command */ iprintf(id, "%s\n", cmd); /* check cmd for a ’?’, if found a
22 Programming the Status System Chapter 2Notes:
Command Reference 23Chapter 3Chapter 3Command ReferenceAbout this ChapterThis section describes the SCPI status system and common (*) commands that
24 Command Reference Chapter 3STATusThe STATus subsystem commands access the condition, event, and enable registers in the Operation Status Group an
Command Reference 25Chapter 3:OPERation:ENABle?STATus:OPERation:ENABle? returns which bits in the event register (Operation Status Group) are unmas
26 Command Reference Chapter 3Comments • Related Commands: STAT:QUES:ENABle, STAT:QUES:EVENt?Example Reading the contents of the condition register
Command Reference 27Chapter 3• Related Commands: STAT:QUES:ENABle, STAT:QUES:ENABle?Example Reading the Event RegisterSTAT:QUES:EVEN?Query returns
28 Command Reference Chapter 3Common Command ReferenceThis section describes the IEEE-488.2 Common Commands that can be used to program instruments
Command Reference 29Chapter 3*DMC <name_string>, <command_block>Define Macro Command. Assigns one, or a sequence of commands to a macro
3This document contains proprietary information which is protected by copyright. All rights are reserved. No part of this document may be photocopie
30 Command Reference Chapter 3Example *ESR?Sends Standard Event Status Register query.*GMC? <name_string>Get Macro Query. Returns arbitrary b
Command Reference 31Chapter 3*RST;:CAL:ZERO:AUTO 1; :CAL:LFR +60; VAL +0.00000000E+000; :DISP:MON:STAT 0; CHAN (@0); :FORM ASC,+7; :FUNC "VOLT&
32 Command Reference Chapter 3• The output queue• The Service Request Enable Register• The Standard Event Status Enable Register• The power-on flag•
Command Reference 33Chapter 3*WAIWait-to-continue. Prevents an instrument from executing another command until the operation caused by the previous
34 Command Reference Chapter 3Notes:
4This Page Intentionally Left Blank
Introduction 5Chapter 1Chapter 1IntroductionThis document describes the common commands and the status system used by VXI instruments. The status s
6 Introduction Chapter 1Notes:
Programming the Status System 7Chapter 2Chapter 2Programming the Status SystemAbout this ChapterThis chapter discusses the structure of the status s
8 Programming the Status System Chapter 2Condition Register The condition register continuously monitors the hardware and firmware status of the ins
Programming the Status System 9Chapter 2Figure 2-2. Typical Status Bit Changes in a Status Register
Kommentare zu diesen Handbüchern