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

Table of Contents

Advertisement

/*
*
Function name:
*
Parameters:
none
*
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 */
/* 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:
*
Parameters:
none
*
Return value:
*
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( void )
{
iclose( scope );
iclose( bus );
_siclcleanup();
} /* end close_SICL() */
read_status
unsigned char indicating the value of status byte
close_IO
none
/* close device session */
/* close interface session */
/* required for 16-bit applications */
Sample Programs
sicl_IO.c Sample Program
6-31

Advertisement

Table of Contents
loading

Table of Contents