Technical data

Table Of Contents
Waveform Commands 34
Agilent Infiniium 9000 Series Oscilloscopes Programmer's Reference 1101
int Start;
void main( void )
{
char Term;
unsigned long BytesToRead;
if ( !InitIO() ) {
exit( 1 );
}
AcquireData();
WriteIO( ":SYStem:HEADer OFF" );
WriteIO( ":SYStem:LONGform OFF" );
WriteIO( ":WAVeform:BYTEorder LSBFirst" ); /* Setup byte order */
WriteIO( ":WAVeform:FORMat WORD" ); /* Setup transfer format *
/
WriteIO( ":WAVeform:SOURce POD1" ); /* Waveform data source pod
1*/
GetTimeConversionFactors( );
BytesToRead = SetupDataTransfer( -25E-6, 25E-6);
ReadWord( wordData, BytesToRead );
ReadByte( &Term, 1L ); /* Read termination character *
/
WriteIO(":WAVeform:FORMat BYTE"); /* Setup transfer format */
BytesToRead = SetupDataTransfer( -25E-6, 25E-6);
ReadByte( byteData, BytesToRead );
ReadByte( &Term, 1L ); /* Read termination character *
/
CreateTimeData( BytesToRead, TimeValues );
WriteCsvToFile( TimeValues, wordData, byteData, BytesToRead );
CloseIO( );
}
/***********************************************************************
********
* Function name: InitIO
* Parameters: none
* Return value: none
* Description: This routine initializes the SICL environment. It se
ts up
* errorhandling, opens both an interface and device ses
sion,
* sets timeout values, clears the GPIB interface card,
and
* clears the oscilloscope's GPIB card by performing a
* Selected Device Clear.