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

Table of Contents

Advertisement

/*
*
Function name:
*
Parameters:
none
*
Return value:
*
Description:
This routine retrieves the system setup known as a
*
learnstring from a disk file called Learn2. It then restores
*
the system setup to the oscilloscope.
*/
void get_learnstring( void )
{
FILE *fp;
unsigned char setup[MAX_LRNSTR];
unsigned long count = 0;
fp = fopen( "learn2","rb");
if ( fp != NULL )
{
count = fread( setup,sizeof(unsigned char),MAX_LRNSTR,fp);
fclose( fp );
}
write_lrnstr(setup,count);
write_IO(":RUN");
}/* end get_learnstring */
Sample Programs
learnstr.c Sample Program
get_learnstring
none
6-26
/* send learnstring */

Advertisement

Table of Contents
loading

Table of Contents