Agilent Technologies Infiniium 90000 Series Programmer's Manual page 1163

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

Advertisement

}
/*********************************************************************
* Function name: OutputData
*
*
*
*
*
*
*
*
*
**********************************************************************/
void OutputData( FILE *PeakFile, WaveformDataHeader waveformDataHeader )
{
}
/*********************************************************************
* Function name: OutputPeakDetectWaveform
*
*
*
*
*
*
*
**********************************************************************/
void OutputPeakDetectWaveform( WaveformHeader waveformHeader )
{
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
if( BytesRead < MAX_LENGTH )
{
done = TRUE;
}
}
Parameters:
FILE *PeakFile which is the pointer to the file
to be written.
WaveformDataHeader waveformDataHeader
which is a structure that contains the waveform
header information.
Return value: none
Description: This routine stores the time, minimum voltage, and
maximum voltage for the peak detect waveform as comma
separated values to a file.
int done = FALSE;
size_t BytesRead = 0L;
int NumberToRead;
NumberToRead = waveformDataHeader.BufferSize;
while( !done )
{
BytesRead = fread( (char *) Volts, 1, NumberToRead, InputFile ) +
BytesRead;
fwrite( Volts, 1, BytesRead, PeakFile );
if( BytesRead <= NumberToRead )
{
done = TRUE;
}
}
Parameters:
WaveformHeader waveformHeader which is a
structure that contains the waveform header
information.
Return value: none
Description: This routine stores the time, minimum voltage, and
maximum voltage for the peak detect waveform as comma
separated values to a file.
WaveformDataHeader waveformDataHeader;
int done = FALSE;
unsigned long i;
unsigned long j = 0;
39
Reference
1163

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents