Agilent Technologies Infiniium 8000A Programmer's Reference Manual page 845

Table of Contents

Advertisement

/*****************************************************************************
* Function name:
*
Parameters:
*
*
*
*
*
*
*
*
*
Return value: none
*
Description: This routine converts the word format waveform data to
*
voltage values using values that describe the waveform.
*
These values are stored in global arrays for use by
*
other routines.
******************************************************************************/
void ConvertWordDataToVolts( short *wordData, double *wordVolts,
{
unsigned long i;
for (i = 0; i < AcquiredLength/2; i++) {
/* calculate voltage values */
wordVolts[i] = (wordData[i] * yInc) + yOrg;
}
}
ConvertWordDataToVolts
short *wordData which is a pointer to the array
of read word values
double *wordVolts which is a pointer to the array of
calculated voltages
unsigned long AcquiredLength which is the number of data
bytes read
double yInc which is the voltage difference represented
by adjacent waveform data digital codes.
double yOrg which is the voltage value of digital code 0.
unsigned long AcquiredLength,
double yInc, double yOrg )
Waveform Commands
DATA? Example for Analog Channels
30-23

Advertisement

Table of Contents
loading

Table of Contents