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

Table of Contents

Advertisement

/*
*
Function name:
*
Parameters:
void *buffer which is a pointer to the character string to
*
be output; length which is the length of the string to be output
*
Return value:
*
Description:
This routine outputs a learnstring to the oscilloscope device
*
session.
*/
void write_lrnstr( void *buffer, long length )
{
ibwrt( scope, buffer, (long) length );
if ( ibsta & ERR )
{
gpiberr( "ibwrt error" );
}
} /* end write_lrnstr() */
/*
*
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.
*/
int read_IO(void *buffer,unsigned long length)
{
ibrd(scope, buffer,( long )length );
return( ibcntl );
} /* end read_IO() */
Sample Programs
natl_IO.c Sample Program
write_lrnstr
none
read_IO
integer which indicates the actual number of bytes read
6-34

Advertisement

Table of Contents
loading

Table of Contents