Agilent Technologies Infiniium 90000 Series Programmer's Manual page 942

Oscilloscopes
Hide thumbs Also See for Infiniium 90000 Series:
Table of Contents

Advertisement

34
Waveform Commands
}
/*****************************************************************
* Function name:
*
*
*
*
*
*
*
*
***********************************************************************/
int InitIO( void )
{
}
/********************************************************************
* Function name:
942
{
exit( 1 );
}
AcquireData();
WriteIO( ":WAVeform:FORMat WORD" );
WriteIO( ":WAVeform:BYTeorder LSBFirst" ); /* Setup transfer of
WriteIO( ":WAVeform:SOURce CHANnel1" ); /* Waveform data source
WriteIO( ":WAVeform:STReaming 1" ); /* Turn on waveform
GetVoltageConversionFactors( &yInc, &yOrg );
GetTimeConversionFactors( &xInc, &xOrg );
BytesToRead = MAX_LENGTH;
SetupDataTransfer();
WriteCsvToFile( BytesToRead );
CloseIO( );
InitIO
Parameters:
none
Return value: TRUE if successful 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.
ionerror( I_ERROR_EXIT );
bus = iopen( INTERFACE );
if ( bus == 0 )
{
printf( "Bus session invalid\n" );
return FALSE;
}
itimeout( bus, IO_TIMEOUT );
iclear( bus );
scope = bus;
return TRUE;
WriteIO
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
/* Setup transfer format */
LSB first */
channel 1 */
streaming of data */
/* set-up interface error handling */
/* open interface session */
/* set bus timeout */
/* clear the interface */
/* open the scope device session */

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents