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

Table of Contents

Advertisement

/* GLOBALS */
int count;
double xorg,xinc;
double yorg,yinc;
int Acquired_length;
char data[MAX_LENGTH];
double time_value[MAX_LENGTH]; /* time value of data */
double volts[MAX_LENGTH];
void main( void )
{
/* initialize interface and device sessions */
/* note: routine found in sicl_IO.c or natl_IO.c
if( init_IO( ) )
{
/* initialize the oscilloscope and interface and set up SRQ */
initialize( );
acquire_data( );
/* perform automated measurements on acquired data */
auto_measurements( );
/* transfer waveform data to the PC from oscilloscope */
transfer_data( );
close_IO( );
}
} /* end main( ) */
init.c - Global Definitions and Main Program
/* values necessary for conversion of data */
/* data buffer */
/* voltage value of data */
/* capture the data */
/* close interface and device sessions */
The init_IO routine initializes the oscilloscope and interface so that the
oscilloscope can capture data and perform measurements on the data. At the
start of the program, global symbols are defined which will be used to store and
convert the digitized data to time and voltage values.
Sample Programs
Sample C Programs
*/
6-5

Advertisement

Table of Contents
loading

Table of Contents