Technical data

878 Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
32 Waveform Commands
if ( !InitIO() )
{
exit( 1 );
}
AcquireData();
WriteIO( ":WAVeform:FORMat WORD" ); /* Setup transfer format */
WriteIO( ":WAVeform:BYTeorder LSBFirst" ); /* Setup transfer of
LSB first */
WriteIO( ":WAVeform:SOURce CHANnel1" ); /* Waveform data source
channel 1 */
WriteIO( ":WAVeform:STReaming 1" ); /* Turn on waveform
streaming of data */
GetVoltageConversionFactors( &yInc, &yOrg );
GetTimeConversionFactors( &xInc, &xOrg );
BytesToRead = MAX_LENGTH;
SetupDataTransfer();
WriteCsvToFile( BytesToRead );
CloseIO( );
}
/*****************************************************************
* Function name: InitIO
* Parameters: none
* Return value: TRUE if successfull otherwise FALSE
* Description: This routine initializes the SICL environment.
* It sets up error handling, opens both an interface
* and device session, sets timeout values, clears
* the LAN interface card, and clears the
* oscilloscope's LAN interface by performing a
* Selected Device Clear.
***********************************************************************/
int InitIO( void )
{
ionerror( I_ERROR_EXIT ); /* set-up interface error handling */
bus = iopen( INTERFACE ); /* open interface session */
if ( bus == 0 )
{
printf( "Bus session invalid\n" );
return FALSE;
}
itimeout( bus, IO_TIMEOUT ); /* set bus timeout */
iclear( bus ); /* clear the interface */
scope = bus; /* open the scope device session */
return TRUE;
}
/********************************************************************