Text preview for : HP E1301B Programming.pdf part of Agilent HP E1301B Programming Agilent HP E1301B Programming.pdf



Back to : HP E1301B Programming.pdf | Home

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
Example ........................................................................................................ 26
:QUEStionable:ENABle ...................................................................................... 26
Parameters ..................................................................................................... 26
Comments ..................................................................................................... 26
Example ........................................................................................................ 26
:QUEStionable:ENABle? .................................................................................... 26
Comments ..................................................................................................... 26
Example ........................................................................................................ 26
:QUEStionable[:EVENt]? ................................................................................... 26
Comments ..................................................................................................... 26
Example ........................................................................................................ 27
Common Command Reference................................................................................... 28
*CLS .................................................................................................................... 28
*DMC , ....................................................... 29
*EMC .................................................................................................. 29
*EMC? ................................................................................................................ 29
*ESE ...................................................................................................... 29
Example ........................................................................................................ 29
*ESE? .................................................................................................................. 29
Example ........................................................................................................ 29
*ESR? .................................................................................................................. 29
Example ........................................................................................................ 30
*GMC? ....................................................................................... 30
Example ........................................................................................................ 30
*IDN? .................................................................................................................. 30
Example ........................................................................................................ 30
*LMC? ................................................................................................................ 30
*LRN? ................................................................................................................. 30
*OPC ................................................................................................................... 31
*OPC? ................................................................................................................. 31
*PMC .................................................................................................................. 31
*RMC ......................................................................................... 31
Example ........................................................................................................ 31
*RST .................................................................................................................... 31
*SRE ...................................................................................................... 32
Example ........................................................................................................ 32
*SRE? .................................................................................................................. 32
Example ........................................................................................................ 32
*STB? .................................................................................................................. 32
Comments ..................................................................................................... 32
Example ........................................................................................................ 32
*TST? .................................................................................................................. 32
Example ........................................................................................................ 32
*WAI ................................................................................................................... 33




2 Contents
This document contains proprietary information which is protected by copyright. All rights are reserved.
No part of this document may be photocopied, reproduced, or translated to another language without the
prior written consent of Hewlett-Packard Company.

E2090-90021


Notice
The information contained in this document is subject to change without notice.

Hewlett-Packard Company (HP) shall not be liable for any errors contained in this document. HP makes no
warranties of any kind with regard to this document, whether express or implied. HP specifically disclaims
the implied warranties of merchantability and fitness for a particular purpose. HP shall not be liable for any
direct, indirect, special, incidental, or consequential damages, whether based on contract, tort, or any other
legal theory, in connection with the furnishing of this document or the use of the information in this document.


Warranty Information
A copy of the specific warranty terms applicable to your Hewlett-Packard product and replacement parts
can be obtained from your local Sales and Service Office.


Restricted Rights Legend
Use, duplication or disclosure by the U.S. Government is subject to restrictions as set forth in subparagraph
(c)(1)(ii) of the Rights in Technical Data and Computer Software clause of DFARS 252.227-7013.

Use of this manual and magnetic media supplied for this product are restricted. Additional copies of the
software can be made for security and backup purposes only. Resale of the software in its present form or
with alterations is expressly prohibited.

Copyright