Technical data

Waveform Commands 32
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 881
* acquiring new waveform data. It initialize's the
* oscilloscope's data buffers, acquires new data,
* and ensures that acquisition criteria are met before the
* acquisition is stopped. Note that the display is
* automatically turned off when you use this form of the
* :DIGitize command and must be turned on to view the
* captured data on screen.
*/
WriteIO(":DIGitize CHANnel1");
WriteIO(":CHANnel1:DISPlay ON");
}
/********************************************************************
* Function name: GetVoltageConversionFactors
* Parameters: 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.
* Return value: none
* Description: This routine reads the conversion factors used to
* convert waveform data to volts.
*********************************************************************/
void GetVoltageConversionFactors( double *yInc, double *yOrg )
{
/* Read values which are used to convert data to voltage values */
WriteIO(":WAVeform:YINCrement?");
ReadDouble( yInc );
WriteIO(":WAVeform:YORigin?");
ReadDouble( yOrg );
}
/*******************************************************************
* Function name: SetupDataTransfer
* Parameters: none
* Return value: none
* Description: This routine sets up the waveform data transfer and
* removes the # and 0 characters.
********************************************************************/
void SetupDataTransfer( void )
{
char cData;
WriteIO( ":WAVeform:DATA?" ); /* Request waveform data */
/* Find the # character */
do
{