Technical data

Table Of Contents
1108 Agilent Infiniium 9000 Series Oscilloscopes Programmer's Reference
34 Waveform Commands
fprintf( fp, "Time,Decimal Word Data,Hex Word Data,Hex Byte Data,Bi
nary Byte Data\n");
Binary[8] = '\0';
for ( i = 0; i < AcquiredLength; i++ ) {
// Create the binary formated byte data
for(j=7,k=0;j>=0;j--, k++ ) {
Binary[k] = ((byteData[i] & ( 1 << j )) >> j) + '0';
}
fprintf( fp, "%e,%d,%04X,%02X,%s\
n", TimeValues[i], wordData[i], wordData[i],
byteData[i], Binary );
}
fclose( fp );
}
else {
printf("Unable to open file 'digital.csv'\n");
}
}
/***********************************************************************
*******
* Function name: Round
* Parameters: double number which is a floating point number
* to be converted.
* Return value: The rounded integer value for the number parameter.
* Description: This routine takes a floating point number and create
san
* integer.
************************************************************************
*****/
int Round( double number )
{
if (number < 0.0f ) {
return ( (int) (number - 0.5f) );
}
else {
return ( (int) (number + 0.5f) );
}
}
Understanding
WORD and BYTE
Formats
Before you can understand how the WORD and BYTE downloads work, it
is necessary to understand how Infiniium creates waveform data.
Analog-to-digital
Conversion
Basics
The input channel of every digital sampling oscilloscope contains an
analog- to- digital converter (ADC) as shown in Figure 7. The 8- bit ADC in
Infiniium consists of 256 voltage comparators. Each comparator has two
inputs. One input is connected to a reference dc voltage level and the
other input is connected to the channel input. When the voltage of the
waveform on the channel input is greater than the dc level, then the