Technical data

Table Of Contents
1106 Agilent Infiniium 9000 Series Oscilloscopes Programmer's Reference
34 Waveform Commands
WriteIO( Range ); /* Request waveform data */
/* Find the # character */
do {
ReadByte( &cData, 1L );
} while ( cData != '#' );
/* Read the next byte which tells how many bytes to read for the numb
er
* of waveform data bytes to transfer value.
*/
ReadByte( &cData, 1L );
BytesToRead = cData - '0'; /* Convert to a number */
/* Reads the number of data bytes that will be transfered */
BytesRead = ReadByte( header_str, BytesToRead );
header_str[BytesRead] = '\0';
BytesToRead = atoi( header_str );
return BytesToRead;
}
/***********************************************************************
*******
* Function name: GetTimeConversionFactors
* Parameters: none
* Return value: none
* Description: This routine transfers the waveform conversion
* factors for the time values.
************************************************************************
*****/
Void GetTimeConversionFactors( void )
{
/* Read values which are used to create time values */
WriteIO(":WAVeform:XINCrement?");
ReadDouble( &xInc );
WriteIO(":WAVeform:XORigin?");
ReadDouble( &xOrg );
}
/***********************************************************************
*******
* Function name: CreateTimeData
* Parameters: unsigned long AcquiredLength which is the number of d
ata
* points
* double TimeValues is a pointer to the array where tim
e