EasyManuals Logo

Agilent Technologies Infiniium DCA User Manual

Agilent Technologies Infiniium DCA
366 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 #72 background imageLoading...
Page #72 background image
2-18
Sample Programs
C Programming Examples
/*
* Function name: check_SRQ
* Parameters: none
* Return value: integer indicating if bus SRQ line was asserted
* Description: This routine checks for the status of SRQ on the bus and returns a value to indicate the status.
*/
int check_SRQ( )
{
int srq_asserted;
/* check for SRQ line status */
ihpibbusstatus(bus, I_GPIB_BUS_SRQ, &srq_asserted);
return ( srq_asserted );
} /* end check_SRQ ( ) */
/*
* Function name: read_status
* Parameters: none
* Return value: unsigned char indicating the value of status byte
* Description: This routine reads the scope status byte and returns the status.
*/
unsigned char read_status ( )
{
unsigned char statusbyte;
/* Always read the status byte from instrument */
/* NOTE: ireadstb uses serial poll to read status byte - this should clear bit 6 to allow another SRQ. */
ireadstb ( scope, &statusbyte );
return ( statusbyte );
} /* end read_status ( ) */
/*
* Function name: close_IO
* Parameters: none
* Return value: none
* Description: This routine closes device and interface sessions for the
* SICL environment and calls the routine _siclcleanup which de-allocates
* resources used by the SICL environment.
*/
void close_IO ( )
{
iclose ( scope ); /* close device session */
iclose ( bus ); /* close interface session */
_siclcleanup ( ); /* required for 16-bit applications */

Other manuals for Agilent Technologies Infiniium DCA

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies Infiniium DCA Specifications

General IconGeneral
BrandAgilent Technologies
ModelInfiniium DCA
CategoryTest Equipment
LanguageEnglish

Related product manuals