Agilent Technologies Infiniium 90000 Series Programmer's Manual page 946

Oscilloscopes
Hide thumbs Also See for Infiniium 90000 Series:
Table of Contents

Advertisement

34
Waveform Commands
}
/*******************************************************************
* Function name:
*
*
*
*
*
*
*
********************************************************************/
void GetTimeConversionFactors( double *xInc, double *xOrg )
{
}
/*******************************************************************
* Function name:
*
*
*
*
*
*
********************************************************************/
void WriteCsvToFile( unsigned long BytesToRead )
{
946
} while ( cData != '#' );
/* Find the 0 character */
do
{
ReadByte( &cData, 1L );
} while ( cData != '0' );
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.
/* Read values which are used to create time values */
WriteIO(":WAVeform:XINCrement?");
ReadDouble( xInc );
WriteIO(":WAVeform:XORigin?");
ReadDouble( xOrg );
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.
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;
fp = fopen( "pairs.csv", "wb" ); /* Open file in binary mode - clear
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents