Agilent Technologies Infiniium 90000 Series Programmer's Manual page 1160

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

Advertisement

39
Reference
void OutputNormalWaveform( WaveformHeader waveformHeader );
void OutputPeakDetectWaveform( WaveformHeader waveformHeader );
void OutputHistogramWaveform( WaveformHeader waveformHeader );
void OutputData( FILE *PeakFile,
/* Globals */
double xOrg=0L, xInc=0L;
union DATATYPE WaveFormData; /* Used to input and output data */
FILE *InputFile = NULL;
FILE *OutputFile;
errno_t err;
char *buffer;
float Volts[MAX_LENGTH];
float MaxVolts[MAX_LENGTH];
float MinVolts[MAX_LENGTH];
UINT64 HistogramData[MAX_LENGTH];
int main( int argc, char **argv )
{
1160
WaveformDataHeader waveformDataHeader );
FileHeader fileHeader;
WaveformHeader waveformHeader;
if( argc > 1 )
{
InputFile = fopen( argv[1], "rb" );
if( InputFile )
{
OutputFile = fopen( argv[2], "wb" );
if( OutputFile )
{
/* Read the File Header */
fread( &fileHeader, 1, sizeof( FileHeader ), InputFile );
/* Make sure that this is an Agilent Binary File */
if( (fileHeader.Cookie[0] == COOKIE[0]) &&
(fileHeader.Cookie[1] == COOKIE[1]) )
{
fread( &waveformHeader, 1,
sizeof( WaveformHeader ), InputFile );
switch( waveformHeader.WaveformType )
{
case PB_NORMAL:
case PB_AVERAGE:
OutputNormalWaveform( waveformHeader );
break;
case PB_PEAK_DETECT:
OutputPeakDetectWaveform( waveformHeader );
break;
case PB_HORZ_HISTOGRAM:
case PB_VERT_HISTOGRAM:
OutputHistogramWaveform( waveformHeader );
break;
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
double *xInc, double *xOrg );
/* Values necessary to create time data */

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents