EasyManuals Logo
Home>Agilent Technologies>Measuring Instruments>E4440A

Agilent Technologies E4440A User Manual

Agilent Technologies E4440A
434 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #349 background imageLoading...
Page #349 background image
Chapter 6 349
Using the STATus System
Using the Status Registers
Using the STATus System
*PSC, *PSC? (power-on state clear) sets the power-on state so that it
clears the service request enable register and the event status
enable register at power on.
*SRE, *SRE? (service request enable) sets and queries the value of
the service request enable register.
*STB? (status byte) queries the value of the status byte register
without erasing its contents.
Why Use the Status Registers
A program often needs to be able to detect and manage error conditions
or changes in instrument status. There are two methods you can use to
programmatically access the information in status registers:
The polling method
The service request (SRQ) method
In the polling method, the instrument has a passive role. It only tells
the controller that conditions have changed when the controller asks
the right question. In the SRQ method, the instrument takes a more
active role. It tells the controller when there has been a condition
change without the controller asking. Either method allows you to
monitor one or more conditions.
The polling method works well if you do not need to know about
changes the moment they occur. The SRQ method should be used if you
must know immediately when a condition changes. To detect a change
using the polling method, the program must repeatedly read the
registers.
Use the SRQ method when:
you need time-critical notification of changes
you are monitoring more than one device which supports SRQs
you need to have the controller do something else while waiting
you cant afford the performance penalty inherent to polling
Use polling when:
your programming language/development environment does not
support SRQ interrupts
you want to write a simple, single-purpose program and dont want
the added complexity of setting up an SRQ handler

Table of Contents

Other manuals for Agilent Technologies E4440A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies E4440A and is the answer not in the manual?

Agilent Technologies E4440A Specifications

General IconGeneral
BrandAgilent Technologies
ModelE4440A
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals