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

Table of Contents

Advertisement

WriteCsvToFile( TimeValues, wordData, byteData, BytesToRead );
CloseIO( );
}
/*******************************************************************************
*
Function name: InitIO
*
Parameters:
*
Return value:
*
Description:
*
*
*
*
*******************************************************************************/
int InitIO( void )
{
ionerror( I_ERROR_EXIT );
bus = iopen( INTERFACE );
if ( bus == 0 ) {
printf( "Bus session invalid\n" );
return FALSE;
}
itimeout( bus, IO_TIMEOUT );
iclear( bus );
#ifdef LAN
scope = bus;
#else
scope = iopen( DEVICE_ADDR );
if ( scope == 0) {
printf( "Scope session invalid\n" );
iclose( bus );
_siclcleanup();
return FALSE;
}
itimeout( scope, IO_TIMEOUT );
iclear( scope );
#endif
return TRUE;
}
Waveform Commands
DATA? Example for Digital Channels
none
none
This routine initializes the SICL environment.
errorhandling, opens both an interface and device session,
sets timeout values, clears the GPIB interface card, and
clears the oscilloscope's GPIB card by performing a
Selected Device Clear.
/* set-up interface error handling */
/* open interface session */
/* close interface session */
/* required for 16-bit applications */
/* perform Selected Device Clear on oscilloscope */
30-28
/* set bus timeout */
/* clear the interface */
/* open the scope device session */
/* set device timeout */
It sets up

Advertisement

Table of Contents
loading

Table of Contents