EasyManuals Logo

Agilent Technologies 33120A User Manual

Agilent Technologies 33120A
312 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 #266 background imageLoading...
Page #266 background image
. . . continued
void rst_clear(void)
{
/* Reset the function generator, clear the error queue, and wait for
commands to complete. A "1" is sent to the output buffer from the
*OPC? command when *RST and *CLS are completed. */
float value;
IOOUTPUTS(ADDR, "*RST;*CLS;*OPC?", 15);
IOENTER(ADDR, &value);
}
/**************************************************************************/
void setup_status(void)
{
/* An interrupt is to be generated whenever an error is detected.
To enable the status registers to generate an interrupt, you must
enable bits in the Status Byte and Standard Event Register. */
/* Enable bit 5 "Standard Event" in the Status Byte to recognize
activity from the Standard Event Register (2^5 = 32) */
IOOUTPUTS(ADDR, "*SRE 32", 7);
/* Enable bits 2, 3, 4, and 5 in the Standard Event Register to
interrupt the Status Byte (2^2 + 2^3 + 2^4 + 2^5 = 60) */
IOOUTPUTS(ADDR, "*ESE 60", 7);
}
/**************************************************************************/
Chapter 6 Application Programs
Using the Status Registers
264

Table of Contents

Other manuals for Agilent Technologies 33120A

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies 33120A Specifications

General IconGeneral
BrandAgilent Technologies
Model33120A
CategoryInverter
LanguageEnglish

Related product manuals