Technical data
882 Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
32 Waveform Commands
ReadByte( &cData, 1L );
} while ( cData != '#' );
/* Find the 0 character */
do
{
ReadByte( &cData, 1L );
} while ( cData != '0' );
}
/*******************************************************************
* Function name: GetTimeConversionFactors
* Parameters: double xInc which is the time between consecutive
* sample points.
* double xOrg which is the time value of the first
* data point.
* Return value: none
* Description: This routine transfers the waveform conversion
* factors for the time values.
********************************************************************/
void GetTimeConversionFactors( double *xInc, double *xOrg )
{
/* Read values which are used to create time values */
WriteIO(":WAVeform:XINCrement?");
ReadDouble( xInc );
WriteIO(":WAVeform:XORigin?");
ReadDouble( xOrg );
}
/*******************************************************************
* Function name: WriteCsvToFile
* Parameters: unsigned long BytesToRead which is the number of
* data points to read
* Return value: none
* Description: This routine stores the time and voltage
* information about the waveform as time and
* voltage separated by commas to a file.
********************************************************************/
void WriteCsvToFile( unsigned long BytesToRead )
{
FILE *fp;
int done = FALSE;
int reason = 0;
unsigned long i;
unsigned long j = 0;
unsigned long BytesRead = 0L;
double Time;
double Volts;
short *buff;