Technical data
Reference 36
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 1079
default:
case PB_UNKNOWN:
printf( "Unknown waveform type: %d\n" );
break;
}
}
}
else
{
printf( "Unable to open output file %s\n", OutputFile);
}
}
else
{
printf( "Unable to open input file %s\n", argv[1] );
}
fclose( InputFile );
fclose( OutputFile );
}
else
{
printf( "Useage: bintoascii inputfile outputfile\n" );
}
}
/*********************************************************************
* 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( WaveformHeader waveformHeader,
double *xInc, double *xOrg )
{
/* Read values which are used to create time values */
*xInc = waveformHeader.XIncrement;
*xOrg = waveformHeader.XOrigin;
}
/*******************************************************************
* Function name: OutputNormalWaveform
* Parameters: WaveformHeader *waveformHeader which is a structure
* that contains the waveform header information.
* 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.
********************************************************************/