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

Table of Contents

Advertisement

/*
*
Function name: convert_data
*
Parameters:
*
*
*
Return value:
*
Description:
This routine converts the waveform data to time/voltage
*
information using the values that describe the waveform.
*
stored in global arrays for use by other routines.
*/
int convert_data( int time_division, int length )
{
int i;
for (i = 0; i < Acquired_length; i++)
{
/* calculate time info */
time_value[i] =(time_division * xinc) + xorg;
/* calculate volt info */
volts[i] = (data[i] * yinc) + yorg;
time_division++;
}
return time_division;
} /* end convert_data() */
Sample Programs
Sample C Programs
init.c - Converting Waveform Data
int time_division which is the index value of the next time
value calculated.
int length number of voltage and time values to calculate.
int time_division which contains the next time index.
The data values are returned as digitized samples (sometimes called
quantization levels or q-levels). These data values must be converted into
voltage and time values.
6-12
These values are

Advertisement

Table of Contents
loading

Table of Contents