Agilent Technologies Infiniium 8000A Programmer's Reference Manual page 129

Table of Contents

Advertisement

/*
*
Function name: check_SRQ
*
Parameters:
*
Return value:
*
Description:
This routine checks for the status of SRQ on the bus and
*
returns a value to indicate the status.
*/
int check_SRQ( void )
{
int srq_asserted;
short control_lines = 0;
iblines( bus, &control_lines);
if( control_lines & BusSRQ )
srq_asserted = TRUE;
else
srq_asserted = FALSE;
return( srq_asserted );
} /* end check_SRQ() */
/*
*
Function name: read_status
*
Parameters:
*
Return value:
*
Description:
This routine reads the oscilloscope status byte and returns
*
the status.
*/
unsigned char read_status( void )
{
unsigned char statusbyte;
/* Always read the status byte from instrument */
ibrsp( scope,
return( statusbyte );
} /* end read_status() */
none
integer indicating if bus SRQ line was asserted
none
unsigned char indicating the value of status byte
&statusbyte );
Sample Programs
natl_IO.c Sample Program
6-35

Advertisement

Table of Contents
loading

Table of Contents