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

Table of Contents

Advertisement

/*
*
Function name:
*
Parameters:
char *buffer which is a pointer to the character string to be
*
input; unsigned long length which indicates the max length of the string to
*
be input
*
Return value:
* Description: This routine inputs strings from the oscilloscope device session
*
using SICL commands.
*/
int read_IO(void *buffer,unsigned long length)
{
int reason;
unsigned long actualcnt;
iread(scope,buffer,length,&reason,&actualcnt);
return( (int) actualcnt );
}
/*
*
Function name: check_SRQ
*
Parameters:
none
*
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;
/* check for SRQ line status */
igpibbusstatus(bus, I_GPIB_BUS_SRQ, &srq_asserted);
return( srq_asserted );
} /* end check_SRQ() */
Sample Programs
sicl_IO.c Sample Program
read_IO
integer which indicates the actual number of bytes read
integer indicating if bus SRQ line was asserted
6-30

Advertisement

Table of Contents
loading

Table of Contents