HP Water System VXI Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Nein HP Water System VXI herunter. HP Water System VXI User's Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 34
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Contents
Programming HP VXI Instruments
Common Commands and the Status System
Edition 1
Contents 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
Seitenansicht 0
1 2 3 4 5 6 ... 33 34

Inhaltsverzeichnis

Seite 1 - Contents

ContentsProgramming HP VXI InstrumentsCommon Commands and the Status SystemEdition 1Contents 1Chapter 1Introduction ...

Seite 2 - 2 Contents

10 Programming the Status System Chapter 2Required Status GroupsAll SCPI instruments must implement a minimum set of status groups. Some instrument

Seite 3 - Printing History

Programming the Status System 11Chapter 2The Standard Operation Status and Questionable Data groups are 16 bits wide, while Status Byte and Standard

Seite 4

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

Seite 5 - Introduction

Programming the Status System 13Chapter 2Example commands using Standard Event registers:*ESE 48 Generate a summary bit on execution or command erro

Seite 6 - 6 Introduction Chapter 1

14 Programming the Status System Chapter 2Questionable DataGroupThe Questionable Data status group provides information about the quality of instrum

Seite 7 - Programming the Status System

Programming the Status System 15Chapter 2Status System Programming ExamplesThis section contains two example programs that use the status system and

Seite 8

16 Programming the Status System Chapter 2• Define an SRQ handler to do the following: -- Read the Status Byte using ireadstb. ireadstb returns the

Seite 9

Programming the Status System 17Chapter 2void main(){ INST id; char addr[80]; char cmd[255]; int opc; int idx; printf("This program

Seite 10 - Required Status Groups

18 Programming the Status System Chapter 2 iclose(id);} Using a ServiceRequest to DetectErrorsThe following example program sets up an SRQ handler

Seite 11

Programming the Status System 19Chapter 2Example Program/* status2.c * * The following program provides an interactive command line interface * to

Seite 12 - Standard Event

2 ContentsExample ... 26:QUEStionable:ENABle ..

Seite 13 - Status Group

20 Programming the Status System Chapter 2 (QRY_ERR_MASK == (esr & QRY_ERR_MASK )) ) { /* an error occurred, read

Seite 14 - Questionable Data

Programming the Status System 21Chapter 2 /* send command */ iprintf(id, "%s\n", cmd); /* check cmd for a ’?’, if found a

Seite 15

22 Programming the Status System Chapter 2Notes:

Seite 16 - Example Program

Command Reference 23Chapter 3Chapter 3Command ReferenceAbout this ChapterThis section describes the SCPI status system and common (*) commands that

Seite 17

24 Command Reference Chapter 3STATusThe STATus subsystem commands access the condition, event, and enable registers in the Operation Status Group an

Seite 18 - . ireadstb returns the RQS

Command Reference 25Chapter 3:OPERation:ENABle?STATus:OPERation:ENABle? returns which bits in the event register (Operation Status Group) are unmas

Seite 19

26 Command Reference Chapter 3Comments • Related Commands: STAT:QUES:ENABle, STAT:QUES:EVENt?Example Reading the contents of the condition register

Seite 20

Command Reference 27Chapter 3• Related Commands: STAT:QUES:ENABle, STAT:QUES:ENABle?Example Reading the Event RegisterSTAT:QUES:EVEN?Query returns

Seite 21

28 Command Reference Chapter 3Common Command ReferenceThis section describes the IEEE-488.2 Common Commands that can be used to program instruments

Seite 22

Command Reference 29Chapter 3*DMC <name_string>, <command_block>Define Macro Command. Assigns one, or a sequence of commands to a macro

Seite 23 - Command Reference

3This document contains proprietary information which is protected by copyright. All rights are reserved. No part of this document may be photocopie

Seite 24 - :OPERation:ENABle

30 Command Reference Chapter 3Example *ESR?Sends Standard Event Status Register query.*GMC? <name_string>Get Macro Query. Returns arbitrary b

Seite 25

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&

Seite 26

32 Command Reference Chapter 3• The output queue• The Service Request Enable Register• The Standard Event Status Enable Register• The power-on flag•

Seite 27 - Reading the Event Register

Command Reference 33Chapter 3*WAIWait-to-continue. Prevents an instrument from executing another command until the operation caused by the previous

Seite 28 - Common Command Reference

34 Command Reference Chapter 3Notes:

Seite 29 - Example ESE?

4This Page Intentionally Left Blank

Seite 30 - Example *IDN?

Introduction 5Chapter 1Chapter 1IntroductionThis document describes the common commands and the status system used by VXI instruments. The status s

Seite 31 - Example *RMC ‘LIST’

6 Introduction Chapter 1Notes:

Seite 32 - Example *TST?

Programming the Status System 7Chapter 2Chapter 2Programming the Status SystemAbout this ChapterThis chapter discusses the structure of the status s

Seite 33

8 Programming the Status System Chapter 2Condition Register The condition register continuously monitors the hardware and firmware status of the ins

Seite 34

Programming the Status System 9Chapter 2Figure 2-2. Typical Status Bit Changes in a Status Register

Kommentare zu diesen Handbüchern

Keine Kommentare